Skip to content

Instantly share code, notes, and snippets.

@shimmerLum
Last active November 23, 2021 01:11
Show Gist options
  • Save shimmerLum/02805c7e85d88baf24f9effe8f0372c2 to your computer and use it in GitHub Desktop.
Save shimmerLum/02805c7e85d88baf24f9effe8f0372c2 to your computer and use it in GitHub Desktop.
Simple JSON definition to be used the OpenApi generator input
{
"swagger": "2.0",
"info": {
"title": "test.json",
"version": "1.0.0"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/test/getint": {
"get": {
"summary": "Read an object containing an int64 value",
"operationId": "GetInt64Test",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/testInt64"
}
}
}
}
}
},
"definitions": {
"testInt64": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
}
}
}
}
}
Copy link

ghost commented Jan 14, 2021

Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment