• Validates a Swagger document in HTTP server context.

    Parameters

    Returns Promise<IValidateSwaggerDocumentResult>

    The promise with the validation result.

    Example

    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