Skip to content

Instantly share code, notes, and snippets.

@KMahoney
Last active October 13, 2019 15:25
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 KMahoney/937b9b7910ebb8fdb7288bcb8ec6b7e3 to your computer and use it in GitHub Desktop.
Save KMahoney/937b9b7910ebb8fdb7288bcb8ec6b7e3 to your computer and use it in GitHub Desktop.
{
"components": {
"schemas": {
"example": {
"required": [
"example",
"example3"
],
"type": "object",
"properties": {
"example": {
"type": "integer",
"nullable": true
},
"example2": {
"type": "integer",
"nullable": true
},
"example3": {
"type": "integer"
},
"example4": {
"type": "integer"
}
}
}
}
},
"openapi": "3.0.0",
"info": {
"version": "0.0.1",
"title": "Example"
},
"paths": {
"/example": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/example"
}
}
},
"description": "Ok Response"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment