Skip to content

Cast to json schema #683

@KayleMaster

Description

@KayleMaster

Hi,

Is it possible to implement casting a python dict to a json schema?
Like casting '4' to a number field - yeah, it's a string but can be casted without problems.
I know this is not entirely in the scope of jsonschema's purpose, but if you can give some hints on where to start by extending this project in my own fork that'd be great.

Or is it possible to check instead if the data can be casted successfully to the schema's type? Something like 'loose' validation.

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