Skip to content

Commit

Permalink
update min and max values based on the appropriate type
Browse files Browse the repository at this point in the history
  • Loading branch information
bekossy committed Apr 17, 2024
1 parent ed33a0c commit 8b44aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-web/src/lib/helpers/openapi_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const openAISchemaToParameters = (schema: GenericObject): Parameter[] =>
if (parameter.type === "array") {
parameter.enum = param["enum"]
}
if (parameter.type === "float" || parameter.type === "int") {
if (parameter.type === "integer" || parameter.type === "number") {
parameter.minimum = param["minimum"]
parameter.maximum = param["maximum"]
}
Expand Down

0 comments on commit 8b44aa0

Please sign in to comment.