UNPKG

fastify-openapi-glue

Version:

generate a fastify configuration from an openapi specification

65 lines (64 loc) 1.02 kB
{ "swagger": "2.0", "info": { "title": "Test swagger", "description": "testing the fastify swagger api", "version": "0.1.0" }, "host": "localhost", "paths": { "/pathParam/{id}": { "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "get": { "operationId": "getPathParam", "summary": "Test path parameters", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "integer" } ], "responses": { "200": { "description": "ok" } } } }, "/noParam": { "parameters": [ { "name": "id", "in": "query", "required": true, "type": "string" } ], "get": { "operationId": "getNoParam", "summary": "Test path parameters", "parameters": [ { "name": "id", "in": "query", "type": "integer" } ], "responses": { "200": { "description": "ok" } } } } } }