The options.
The promise with the validation result.
import createServer from "@egomobile/http-server"
import { validateSwaggerDocument } from "@egomobile/openapi-schema-validator"
const app = createServer()
// validate document schema
// and documents of controller methods
await validateSwaggerDocument({
controllerMethods: result.methods,
documentation: result.documentation,
})
await app.listen(8080)
Generated using TypeDoc
Validates a Swagger document in HTTP server context.