Skip to content

Commit

Permalink
fix: Filter undefined types and avoid bool enum error (#82)
Browse files Browse the repository at this point in the history
* Set path Zod parse to improve error message

* Update @seamapi/types

* Filter out undefined property types

* Pass down parentPaths

* Split createParameter from createParameters
  • Loading branch information
razor-x authored Sep 9, 2024
1 parent e75d62b commit bbd2fdb
Show file tree
Hide file tree
Showing 7 changed files with 495 additions and 114 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@seamapi/types": "1.228.0",
"@seamapi/types": "1.240.0",
"@types/node": "^20.8.10",
"ava": "^6.0.1",
"c8": "^10.1.2",
Expand Down
2 changes: 2 additions & 0 deletions src/lib/blueprint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ test('createProperties: assigns appropriate default values', (t) => {

const properties = createProperties(
minimalProperties as Record<string, OpenapiSchema>,
['foo'],
)

t.is(properties.length, 1, 'Should create one property')
Expand Down Expand Up @@ -49,6 +50,7 @@ test('createProperties: uses provided values', (t) => {

const properties = createProperties(
fullProperties as Record<string, OpenapiSchema>,
['foo'],
)

t.is(properties.length, 1, 'Should create one property')
Expand Down
Loading

0 comments on commit bbd2fdb

Please sign in to comment.