-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ccec46
commit 65844d2
Showing
17 changed files
with
639 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,6 @@ public void processPropertySchema(Schema schema) { | |
}else { | ||
processSchemaType(property); | ||
} | ||
|
||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
modules/swagger-parser-v3/src/test/resources/example0/api.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"version": "v3.1.1", | ||
"title": "Foo API", | ||
"x-serviceName": "foo", | ||
"description": "Blah blah blah", | ||
"contact": { | ||
"name": "Foo Team", | ||
"email": "bar@foo.com" | ||
} | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "http://localhost:8080" | ||
} | ||
], | ||
"paths": { | ||
"/v4/foo": { | ||
"get": { | ||
"description": "Blah blah blah", | ||
"operationId": "getFoos", | ||
"tags": [ | ||
"Foo" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "my_id", | ||
"description": "Blah blah blah", | ||
"in": "query", | ||
"required": false, | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Blah blah blah", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Combination" | ||
} | ||
} | ||
} | ||
}, | ||
"default": { | ||
"description": "Blah blah blah", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Error" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"Combination": { | ||
"$ref": "./models/combination.json" | ||
}, | ||
"Combinations": { | ||
"$ref": "./models/combinations.json" | ||
}, | ||
"Raygun": { | ||
"$ref": "./models/target/raygun.json" | ||
}, | ||
"Dingy": { | ||
"$ref": "./models/target/dingy.json" | ||
}, | ||
"Headlight": { | ||
"$ref": "./models/target/headlight.json" | ||
}, | ||
"Stamp": { | ||
"$ref": "./models/target/stamp.json" | ||
}, | ||
"Stripe": { | ||
"$ref": "./models/target/stripe.json" | ||
} | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
modules/swagger-parser-v3/src/test/resources/example0/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"artifactVersion": "1.1.1" | ||
} |
50 changes: 50 additions & 0 deletions
50
modules/swagger-parser-v3/src/test/resources/example0/models/combination.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"type": "object", | ||
"description": "Blah blah blah", | ||
"properties": { | ||
"file": { | ||
"$ref": "#/components/schemas/Link", | ||
"description": "Blah blah blah", | ||
"readOnly": true | ||
}, | ||
"fileVersion": { | ||
"$ref": "#/components/schemas/Link", | ||
"description": "Blah blah blah" | ||
}, | ||
"target": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/components/schemas/Raygun" | ||
}, | ||
{ | ||
"$ref": "#/components/schemas/Dingy" | ||
}, | ||
{ | ||
"$ref": "#/components/schemas/Headlight" | ||
} | ||
], | ||
"description": "Blah blah blah" | ||
}, | ||
"createdBy": { | ||
"$ref": "#/components/schemas/Link", | ||
"description": "Blah blah blah", | ||
"readOnly": true | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"Link": { | ||
"$ref": "./common/link.json" | ||
}, | ||
"Raygun": { | ||
"$ref": "./target/raygun.json" | ||
}, | ||
"Dingy": { | ||
"$ref": "./target/dingy.json" | ||
}, | ||
"Headlight": { | ||
"$ref": "./target/headlight.json" | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
modules/swagger-parser-v3/src/test/resources/example0/models/combinations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"type": "object", | ||
"required": [ | ||
"data" | ||
], | ||
"properties": { | ||
"data": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "./combination.json" | ||
} | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
modules/swagger-parser-v3/src/test/resources/example0/models/common/error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"type": "object", | ||
"description": "Blah blah blah" | ||
} |
12 changes: 12 additions & 0 deletions
12
modules/swagger-parser-v3/src/test/resources/example0/models/common/link.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"properties": { | ||
"type": { | ||
"description": "Blah blah blah", | ||
"type": "string" | ||
}, | ||
"id": { | ||
"description": "Blah blah blah", | ||
"type": "string" | ||
} | ||
} | ||
} |
Oops, something went wrong.