-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#65: Support for dotted parameter names for required changes
- Loading branch information
Showing
5 changed files
with
458 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
215 changes: 215 additions & 0 deletions
215
...ger-brake/src/test/resources/swaggers/v2/request/dottedparameterrequired/swagger-new.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,215 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | ||
"version": "1.0.5", | ||
"title": "Swagger Petstore", | ||
"termsOfService": "http://swagger.io/terms/", | ||
"contact": { | ||
"email": "apiteam@swagger.io" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | ||
} | ||
}, | ||
"host": "petstore.swagger.io", | ||
"basePath": "/v2", | ||
"tags": [ | ||
{ | ||
"name": "pet", | ||
"description": "Everything about your Pets", | ||
"externalDocs": { | ||
"description": "Find out more", | ||
"url": "http://swagger.io" | ||
} | ||
}, | ||
{ | ||
"name": "store", | ||
"description": "Access to Petstore orders" | ||
} | ||
], | ||
"schemes": [ | ||
"https", | ||
"http" | ||
], | ||
"paths": { | ||
"/pet": { | ||
"post": { | ||
"tags": [ | ||
"pet" | ||
], | ||
"summary": "Add a new pet to the store", | ||
"description": "", | ||
"operationId": "addPet", | ||
"consumes": [ | ||
"application/json", | ||
"application/xml" | ||
], | ||
"produces": [ | ||
"application/json", | ||
"application/xml" | ||
], | ||
"parameters": [ | ||
{ | ||
"in": "body", | ||
"name": "body", | ||
"description": "Pet object that needs to be added to the store", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/Pet" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"405": { | ||
"description": "Invalid input" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"ApiResponse": { | ||
"type": "object", | ||
"properties": { | ||
"code": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"type": { | ||
"type": "string" | ||
}, | ||
"message": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"Category": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "integer", | ||
"format": "int64" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
}, | ||
"xml": { | ||
"name": "Category" | ||
} | ||
}, | ||
"Pet": { | ||
"type": "object", | ||
"required": [ | ||
"photoUrls", | ||
"urn:scim:schemas:extension:workspace:1.0:name" | ||
], | ||
"properties": { | ||
"id": { | ||
"type": "integer", | ||
"format": "int64" | ||
}, | ||
"category": { | ||
"$ref": "#/definitions/Category" | ||
}, | ||
"urn:scim:schemas:extension:workspace:1.0:name": { | ||
"type": "string", | ||
"example": "doggie" | ||
}, | ||
"photoUrls": { | ||
"type": "array", | ||
"xml": { | ||
"wrapped": true | ||
}, | ||
"items": { | ||
"type": "string", | ||
"xml": { | ||
"name": "photoUrl" | ||
} | ||
} | ||
}, | ||
"tags": { | ||
"type": "array", | ||
"xml": { | ||
"wrapped": true | ||
}, | ||
"items": { | ||
"xml": { | ||
"name": "tag" | ||
}, | ||
"$ref": "#/definitions/Tag" | ||
} | ||
}, | ||
"status": { | ||
"type": "string", | ||
"description": "pet status in the store", | ||
"enum": [ | ||
"available", | ||
"pending", | ||
"sold" | ||
] | ||
} | ||
}, | ||
"xml": { | ||
"name": "Pet" | ||
} | ||
}, | ||
"Tag": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "integer", | ||
"format": "int64" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
}, | ||
"xml": { | ||
"name": "Tag" | ||
} | ||
}, | ||
"Order": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "integer", | ||
"format": "int64" | ||
}, | ||
"petId": { | ||
"type": "integer", | ||
"format": "int64" | ||
}, | ||
"quantity": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"shipDate": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"status": { | ||
"type": "string", | ||
"description": "Order Status", | ||
"enum": [ | ||
"placed", | ||
"approved", | ||
"delivered" | ||
] | ||
}, | ||
"complete": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"xml": { | ||
"name": "Order" | ||
} | ||
} | ||
}, | ||
"externalDocs": { | ||
"description": "Find out more about Swagger", | ||
"url": "http://swagger.io" | ||
} | ||
} |
Oops, something went wrong.