Webroute

@webroute/oasFunctions

createSpec

createSpec(operations, options?): OpenApiBuilder

Creates an OAS definition from the given operation list.

Without providing the formatter option, schema are automatically coerced to the "any" type: {}.

Providing a formatter enables producing schema-rich OAS.

Parameters

ParameterTypeDescription
operationsOperationsRecordInput | OperationsArrayInput
options?CreateSpecOptions

Returns

OpenApiBuilder

On this page