fastify-openapi-glue
Version:
generate a fastify configuration from an openapi specification
67 lines (66 loc) • 1.02 kB
JSON
{
"openapi": "3.0.0",
"servers": [
{
"url": "http://localhost/v2"
}
],
"info": {
"title": "Test specification",
"description": "testing the fastify openapi glue",
"version": "0.1.0"
},
"paths": {
"/pathParam/{id}": {
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"get": {
"operationId": "getPathParam",
"summary": "Test path parameters",
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/noParam": {
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"schema": {
"type": "integer"
}
}
],
"get": {
"operationId": "getNoParam",
"summary": "Test path parameters",
"parameters": [
{
"name": "id",
"in": "query",
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "ok"
}
}
}
}
}
}