openapi-ts-json-schema
Version:
Generate TypeScript-first JSON schemas from OpenAPI definitions
9 lines (8 loc) • 304 B
TypeScript
/**
* Parses internal schema ids (/components/schema/Foo) to the derive the expected schema output path
* this library saves generated JSON schemas to (...outputPath/components.schema/Foo)
*/
export declare function parseId(id: string): {
schemaRelativeDirName: string;
schemaName: string;
};