swagger-validate-lite (2019.2.12)
this zero-dependency package will provide a simple cli-tool to validate swagger.json
download standalone app
run internal test
edit or paste swagger.json data below to validate
{ "swagger": "this is an example error", "info": { "title": "Swagger Petstore", "version": "0.0.1" }, "paths": { "/pet/{petId}": { "get": { "operationId": "getPetById", "parameters": [ { "name": "petId", "in": "path", "description": "ID of pet to return", "required": true, "type": "integer", "format": "int64" } ], "responses": { "200": { "description": "successful operation" } }, "tags": [ "pet" ] } } }, "tags": [ { "name": "pet" } ] }
stderr and stdout
[ this app was created with
utility2
]