metadevpro / openapi3-ts

TS Model & utils for creating and exposing OpenAPI 3.x contracts.
MIT License
485 stars 64 forks source link

feat: yaml options #144

Closed urugator closed 2 months ago

urugator commented 2 months ago

Types are copied from yaml repo:

export declare function stringify(value: any, replacer?: Replacer | null, options?: string | number | (DocumentOptions & SchemaOptions & ParseOptions & CreateNodeOptions & ToStringOptions)): string;

To keep things simple and in line with getSpecAsJson the signature with options only (without replacer) is not supported.

Fixes: https://github.com/metadevpro/openapi3-ts/issues/143