diff --git a/oxide-openapi-gen-ts/src/client/base.ts b/oxide-openapi-gen-ts/src/client/base.ts index 1f498f6..045062a 100644 --- a/oxide-openapi-gen-ts/src/client/base.ts +++ b/oxide-openapi-gen-ts/src/client/base.ts @@ -21,7 +21,7 @@ export const getSortedSchemas = (spec: OpenAPIV3.Document) => { Object.keys(spec.components?.schemas || {}).map((name) => [ name, JSON.stringify(spec.components!.schemas![name]) - .match(/#\/components\/schemas\/[a-zA-Z0-9\.\-_]+$/g) + .match(/#\/components\/schemas\/[a-zA-Z0-9.\-_]+$/g) ?.map((s) => s.replace("#/components/schemas/", "")), ]) );