Skip to content

Cannot correctly recognize date-time format #804

@KordianD

Description

@KordianD

I have installed this tool from PyPi, and something is wrong with recognizing date-time format.
Other tools do not have such problems.

Json

{ "Begin": "test" }

Schema
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "Begin": { "type": "string", "format": "date-time" } } }

Command
jsonschema --instance example.json schema.json

This does not throw any errors, but date is in the wrong format. Why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions