openapi-ts-json-schema
Version:
OpenAPI to JSON schema generator with TypeScript in mind
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;
};