Skip to content

Instantly share code, notes, and snippets.

@tc-imba
Last active August 9, 2022 18:18
Show Gist options
  • Save tc-imba/76dc7e627a56ac84b5c1c14b08d90f1e to your computer and use it in GitHub Desktop.
Save tc-imba/76dc7e627a56ac84b5c1c14b08d90f1e to your computer and use it in GitHub Desktop.
{
"openapi": "3.0.2",
"info": {
"title": "test",
"description": "test",
"version": "0.1.1"
},
"paths": {
"/": {
"get": {
"summary": "test",
"operationId": "test",
"parameters": [
{
"required": false,
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/ArchiveType"
}
],
"default": "zip"
},
"name": "archiveType",
"in": "query"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ArchiveType": {
"title": "ArchiveType",
"enum": [
"zip",
"tar",
"unknown"
],
"type": "string",
"description": "An enumeration."
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment