Skip to content

Commit

Permalink
chore: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Nov 6, 2020
1 parent e95a13b commit c6f0c54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
},
"dependencies": {
"aspida": "^0.22.2",
"openapi-types": "^7.0.1",
"swagger-parser": "^10.0.2",
"swagger2openapi": "^7.0.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/builderUtils/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const schema2value = (
null: 'null',
string: 'string',
boolean: 'boolean'
}[schema.type]
}[schema.type ?? 'string']
}

return value ? { isArray, isEnum, isOneOf, value } : null
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4232,6 +4232,11 @@ onetime@^5.1.0:
dependencies:
mimic-fn "^2.1.0"

openapi-types@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/openapi-types/-/openapi-types-7.0.1.tgz#966bcacfd14119fa12000dbc9d588bfd8df2e4d1"
integrity sha512-6pi4/Fw+JIW1HHda2Ij7LRJ5QJ8f6YzaXnsRA6m44BJz8nLq/j5gVFzPBKJo+uOFhAeHqZC/3uzhTpYPga3Q/A==

optionator@^0.8.1:
version "0.8.3"
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
Expand Down

0 comments on commit c6f0c54

Please sign in to comment.