Skip to content

Instantly share code, notes, and snippets.

@Bethibande
Created May 1, 2024 09:07
Show Gist options
  • Save Bethibande/c97b0b64e3dc284c056c02fbf3778a9b to your computer and use it in GitHub Desktop.
Save Bethibande/c97b0b64e3dc284c056c02fbf3778a9b to your computer and use it in GitHub Desktop.
#18517-openapi-spec
{
"openapi": "3.0.3",
"info": {
"version": "1.1.4",
"title": "test-file"
},
"paths": {
"/repos/deployments": {
"post": {
"summary": "Create a deployment",
"description": "",
"tags": [
"repos"
],
"operationId": "repos/create-deployment",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"payload": {
"oneOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "string",
"description": "JSON payload with extra information about the deployment.",
"default": ""
}
]
}
}
}
}
}
},
"responses": {
"202": {
"description": "Merged branch response",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment