Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Sep 12, 2021
1 parent 831cb1c commit d9bc534
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions spec/resolve.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ describe("resolve", () => {

it("should resolve fragment $id in schema refs when root $id not present", () => {
const schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"SeeAlso": { "$id": "#SeeAlso", "type": "number" },
"Engine": {
"$id": "#Engine",
"type": "object",
"properties": {
"see_also": { "$ref": "#SeeAlso" }
}
}
}
$schema: "http://json-schema.org/draft-07/schema#",
definitions: {
SeeAlso: {$id: "#SeeAlso", type: "number"},
Engine: {
$id: "#Engine",
type: "object",
properties: {
see_also: {$ref: "#SeeAlso"},
},
},
},
}

instances.forEach((ajv) => {
ajv.addSchema(schema, "yaml.json")
const data = { see_also: 1 }
const data = {see_also: 1}
const validate = ajv.validate("yaml.json#/definitions/Engine", data)
validate.should.equal(true)
})
Expand Down

0 comments on commit d9bc534

Please sign in to comment.