Skip to content

Conversation

cyx-6
Copy link
Contributor

@cyx-6 cyx-6 commented Jan 8, 2025

This PR covers the most string formats in JSON schema, except "idn-email", "idn-hostname", "iri", and "iri-reference".

@Ubospica
Copy link
Collaborator

Ubospica commented Feb 5, 2025

Please rebase to the latest main since we just force-pushed it. See #177 (comment) for more info.

ut part 1

wip

uri and uri-reference

ipv6

json-pointer uri-template

refactor email
@cyx-6 cyx-6 force-pushed the json-schema-format branch from fa8049f to f1979d5 Compare February 25, 2025 06:06
RegexToEBNF(relative_json_pointer_regex_pattern, false);
return "\"\\\"\" " + relative_json_pointer_ebnf + " \"\\\"\"";
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably remove the "format" key in WarnUnsupportedKeywords below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Actually some sub-types in "format" are still missing, e.g. iri and idn-email. Maybe we need to notify in detail.

Copy link
Contributor

@benchislett benchislett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR still under review? Could it be merged before the next upcoming release?

@Ubospica
Copy link
Collaborator

Is this PR still under review? Could it be merged before the next upcoming release?

Thanks for asking this. I think so, and I am working on it recently. The main problem for this PR is the generated bnf from these format parameter could run slow; I am working on enhancing the efficiency.

@Ubospica
Copy link
Collaborator

Moved to #266.

@Ubospica Ubospica closed this Mar 24, 2025
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

Successfully merging this pull request may close these issues.

3 participants