Skip to content

jsonschema: support formats #79

@jba

Description

@jba

The format keyword is a string that describes the kind of value that the schema represents, like "date" or "email". See the spec.

The Schema type contains a Format field, but does nothing with it. Depending on other settings, as described in the spec, it could be used to validate or just "annotate."

This package doesn't support annotations except as an internal bookkeeping mechanism for validation, and I'm inclined to keep it that way unless there is demand.

We could validate against formats. Best practice advises against that, recommending the pattern keyword instead, but some uses may require it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions