Skip to content

Commit

Permalink
Do not specify ending
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Sep 9, 2024
1 parent 2263899 commit 266386c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oxide-openapi-gen-ts/src/client/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/", "")),
])
);
Expand Down

0 comments on commit 266386c

Please sign in to comment.