Skip to content

Support for IRI and IRI Reference #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stevespringett opened this issue May 2, 2021 · 4 comments
Closed

Support for IRI and IRI Reference #402

stevespringett opened this issue May 2, 2021 · 4 comments

Comments

@stevespringett
Copy link

I need to be able to validate iri and iri-reference. It doesn't look like the library supports it currently.

This ticket is to request support for iri and iri-reference.

In the meantime, is there a workaround to add support for it myself?

@stevehu
Copy link
Contributor

stevehu commented May 2, 2021

@stevespringett As I understand, there are two steps to support the iri and iri-reference. The first step is two support the format and the second is to support the reference and loading etc.

The second part is not finalized yet per this opened issue

To support the format, it is much easier and the only class that you might need to update is the format template.

https://github.com/networknt/json-schema-validator/tree/master/src/main/java/com/networknt/schema/format

@stevespringett
Copy link
Author

Hi @stevehu. Yes, I'm primarily interested in supporting format in order to properly validate. I didn't see an easy way to provide my own format (or add to existing formats) without forking the project and making the changes locally. I need to avoid modified forks. Any guidance on how this can be achieved without modifying the library?

@stevehu
Copy link
Contributor

stevehu commented Jul 6, 2021

To support the format, we can just add the template for the iri and iri-reference to the library with a PR. This validation should be standard for all users and there is no need to fork and customize.

@fdutton
Copy link
Contributor

fdutton commented May 22, 2023

Resolved in #766 and #768

@fdutton fdutton closed this as completed May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants