OpenAPI Spec Validator is a CLI, pre-commit hook and python package that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger), OpenAPI 3.0 and OpenAPI 3.1 specification.
Apache License 2.0
324
stars
61
forks
source link
Numbers converted into scientific notation are not considered valid numbers #308
The property pvalue_threshold in https://nodenormalization-sri.renci.org/openapi.json fails validation because the default value (0.000001) is converted into scientific notation in Python (1e-06), which is judged to not be a valid number (Could not validate OpenAPI at https://nodenormalization-sri.renci.org/openapi.json: '1e-06' is not of type 'number'). Is there any way to work around this?
The property
pvalue_threshold
in https://nodenormalization-sri.renci.org/openapi.json fails validation because the default value (0.000001
) is converted into scientific notation in Python (1e-06
), which is judged to not be a valid number (Could not validate OpenAPI at https://nodenormalization-sri.renci.org/openapi.json: '1e-06' is not of type 'number'
). Is there any way to work around this?May be related to https://github.com/python-openapi/openapi-spec-validator/issues/115