Skip to content

Instantly share code, notes, and snippets.

@ma-pe
Last active October 25, 2022 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ma-pe/511bc26d11da274916fd4b8fe1aff1aa to your computer and use it in GitHub Desktop.
Save ma-pe/511bc26d11da274916fd4b8fe1aff1aa to your computer and use it in GitHub Desktop.
Basic Open Api Spec related to Bug-Ticket
{
"openapi": "3.0.1",
"info": {
"title": "Example Open Api Spec",
"description": "Example Open API Spec with Deprecation on schema property level",
"version": "1.0.32"
},
"paths": {
"/v1/products/{productId}": {
"get": {
"description": "gets a product",
"parameters": [
{
"name": "productId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "SUCCESS",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Product"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Product": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"title": {
"deprecated": true,
"type": "string"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment