UNPKG

signalk-server

Version:

An implementation of a [Signal K](http://signalk.org) server for boats.

13 lines 634 B
/** * Converts TypeBox schemas into an OpenAPI 3.0 `components.schemas` object. * * Each schema's `$id` becomes the key in the output map. Bare `$ref` * values produced by TypeBox's `Type.Ref()` are rewritten to the * OpenAPI `#/components/schemas/<name>` form. Embedded schemas that * have their own `$id` are replaced with a `$ref` link. Non-standard * properties like `units` are stripped for OpenAPI 3.0 compliance. */ type SchemaObject = Record<string, any>; export declare function typeboxToOpenApiSchemas(schemas: SchemaObject[]): Record<string, SchemaObject>; export {}; //# sourceMappingURL=openApiSchemas.d.ts.map