@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
Parameter | Type | Description |
---|---|---|
operations | OperationsRecordInput | OperationsArrayInput | |
options ? | CreateSpecOptions |
Returns
OpenApiBuilder