Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/specs/historical-issues/fixtures/bar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"bardef": { "type": "string" }
}
}
6 changes: 6 additions & 0 deletions test/specs/historical-issues/fixtures/base-200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "object",
"properties": {
"some_value": { "$ref": "defs.json#/definitions/astring" }
}
}
8 changes: 8 additions & 0 deletions test/specs/historical-issues/fixtures/binary-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Person:
type: object
properties:
name:
type: string
data:
type: string
default: "base64data"
4 changes: 4 additions & 0 deletions test/specs/historical-issues/fixtures/color.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "string",
"enum": ["red", "green", "blue"]
}
9 changes: 9 additions & 0 deletions test/specs/historical-issues/fixtures/common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
components:
schemas:
ErrorResponse:
type: object
properties:
message:
type: string
code:
type: integer
7 changes: 7 additions & 0 deletions test/specs/historical-issues/fixtures/defs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"definitions": {
"astring": {
"$ref": "defs2.json#/definitions/bstring"
}
}
}
9 changes: 9 additions & 0 deletions test/specs/historical-issues/fixtures/defs2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"definitions": {
"bstring": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
}
12 changes: 12 additions & 0 deletions test/specs/historical-issues/fixtures/foo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"foodef": { "$ref": "bar.json#/definitions/bardef" }
},
"type": "object",
"properties": {
"prop": {
"$ref": "#/definitions/foodef"
}
}
}
14 changes: 14 additions & 0 deletions test/specs/historical-issues/fixtures/linked-list-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$id": "LinkedList.schema.json",
"definitions": {
"linkedList": {
"type": "object",
"properties": {
"head": {
"description": "The head of the list",
"$ref": "node-schema.json#/definitions/node"
}
}
}
}
}
17 changes: 17 additions & 0 deletions test/specs/historical-issues/fixtures/node-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$id": "Node.schema.json",
"definitions": {
"node": {
"type": "object",
"properties": {
"data": {
"description": "Some data",
"type": "integer"
},
"next": {
"$ref": "#/definitions/node"
}
}
}
}
}
12 changes: 12 additions & 0 deletions test/specs/historical-issues/fixtures/relative-main.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"amount": {
"type": "integer"
},
"sub": {
"$ref": "subfolder/sub.json"
}
}
}
6 changes: 6 additions & 0 deletions test/specs/historical-issues/fixtures/subfolder/sub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "object",
"properties": {
"name": { "type": "string" }
}
}
Loading