Skip to content

Commit

Permalink
test: add test to check external files for properties starting with a…
Browse files Browse the repository at this point in the history
… number
  • Loading branch information
Till Schweneker authored and astahmer committed Dec 5, 2023
1 parent 95a8e85 commit a08270a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/ref-in-another-file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test("ref-in-another-file", async () => {
"parameters": [],
"path": "/robots.txt",
"requestFormat": "json",
"response": "z.object({ name: z.string(), completed: z.boolean() }).passthrough()",
"response": "z.object({ name: z.string(), completed: z.boolean(), "0_property_starting_with_number": z.number() }).passthrough()",
},
],
"issues": {
Expand Down
3 changes: 3 additions & 0 deletions lib/tests/ref-in-another-file/single-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ properties:
type: string
completed:
type: boolean
0_property_starting_with_number:
type: number
required:
- name
- completed
- 0_property_starting_with_number

0 comments on commit a08270a

Please sign in to comment.