diff --git a/oxide-openapi-gen-ts/src/client/base.ts b/oxide-openapi-gen-ts/src/client/base.ts index c24e42e..9c4e48d 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/", "")), ]) );