Skip to content

Commit

Permalink
better standards
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhostettler committed May 22, 2024
1 parent be3616e commit 34c5e8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsonschema/reference.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ func resolveRef(ref string, data json.RawMessage, schemaPath string, oneOfType s
break
}
var schema *Schema
if !flatten {
schema, err = SchemaFromFileNoFlatten(refPath, oneOfType)
} else {
if flatten {
schema, err = SchemaFromFile(refPath, oneOfType)
} else {
schema, err = SchemaFromFileNoFlatten(refPath, oneOfType)
}
if err != nil {
return nil, fmt.Errorf("failed to process reference file %q: %v", refPath, err)
Expand Down

0 comments on commit 34c5e8f

Please sign in to comment.