Skip to content

Commit

Permalink
Update name regex to match spec
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Sep 9, 2024
1 parent 741dae0 commit a72cb90
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)

Check failure on line 24 in oxide-openapi-gen-ts/src/client/base.ts

View workflow job for this annotation

GitHub Actions / validate

Unnecessary escape character: \.
?.map((s) => s.replace("#/components/schemas/", "")),
])
);
Expand Down

0 comments on commit a72cb90

Please sign in to comment.