Skip to content

Valiadation fails #3

@nloadholtes

Description

@nloadholtes

The json seems correct, but the validator throws an exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/njl/projects/github/har-to-openapi/har_to_openapi/__main__.py", line 19, in <module>
    validate_openapi_spec(openapi_spec)
  File "/home/njl/projects/github/har-to-openapi/har_to_openapi/converter.py", line 51, in validate_openapi_spec
    validate(instance=openapi_spec, schema=schema_data)
  File "/home/njl/projects/github/har-to-openapi/.venv/lib/python3.10/site-packages/openapi_schema_validator/shortcuts.py", line 19, in validate
    cls.check_schema(schema)
  File "/home/njl/projects/github/har-to-openapi/.venv/lib/python3.10/site-packages/jsonschema/validators.py", line 302, in check_schema
    raise exceptions.SchemaError.create_from(error)
jsonschema.exceptions.SchemaError: True is not of type 'number'

Failed validating 'type' in metaschema['properties']['definitions']['additionalProperties']['$dynamicRef']['allOf'][1]['properties']['properties']['additionalProperties']['$dynamicRef']['allOf'][3]['properties']['exclusiveMinimum']:
    {'type': 'number'}

On schema['definitions']['Schema']['properties']['multipleOf']['exclusiveMinimum']:
    True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions