Skip to content

Commit

Permalink
chore(test-suite): regenerate YAML test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
harrel56 committed Oct 15, 2024
1 parent a2f3b8b commit 7e79215
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/test/resources/suite-yaml/remotes/draft4/subSchemas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
definitions:
integer:
type: integer
refToInteger:
$ref: '#/definitions/integer'
6 changes: 6 additions & 0 deletions src/test/resources/suite-yaml/remotes/draft7/name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
definitions:
orNull:
anyOf:
- type: "null"
- $ref: '#'
type: string
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$id: http://localhost:1234/ref-and-definitions.json
$id: http://localhost:1234/draft7/ref-and-definitions.json
definitions:
inner:
properties:
Expand Down
5 changes: 5 additions & 0 deletions src/test/resources/suite-yaml/remotes/draft7/subSchemas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
definitions:
integer:
type: integer
refToInteger:
$ref: '#/definitions/integer'
10 changes: 5 additions & 5 deletions src/test/resources/suite-yaml/tests/draft7/refRemote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
valid: false
- description: fragment within remote ref
schema:
$ref: http://localhost:1234/subSchemas.json#/definitions/integer
$ref: http://localhost:1234/draft7/subSchemas.json#/definitions/integer
tests:
- description: remote fragment valid
data: 1
Expand All @@ -20,7 +20,7 @@
valid: false
- description: ref within remote ref
schema:
$ref: http://localhost:1234/subSchemas.json#/definitions/refToInteger
$ref: http://localhost:1234/draft7/subSchemas.json#/definitions/refToInteger
tests:
- description: ref within ref valid
data: 1
Expand Down Expand Up @@ -100,7 +100,7 @@
type: object
properties:
name:
$ref: name.json#/definitions/orNull
$ref: draft7/name.json#/definitions/orNull
tests:
- description: string is valid
data:
Expand All @@ -119,7 +119,7 @@
schema:
$id: http://localhost:1234/schema-remote-ref-ref-defs1.json
allOf:
- $ref: ref-and-definitions.json
- $ref: draft7/ref-and-definitions.json
tests:
- description: invalid
data:
Expand All @@ -131,7 +131,7 @@
valid: true
- description: Location-independent identifier in remote ref
schema:
$ref: http://localhost:1234/locationIndependentIdentifierPre2019.json#/definitions/refToInteger
$ref: http://localhost:1234/draft7/locationIndependentIdentifier.json#/definitions/refToInteger
tests:
- description: integer is valid
data: 1
Expand Down

0 comments on commit 7e79215

Please sign in to comment.