Skip to content

Validating URI templates? #332

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
JulienPalard opened this issue May 2, 2017 · 4 comments
Closed

Validating URI templates? #332

JulienPalard opened this issue May 2, 2017 · 4 comments

Comments

@JulienPalard
Copy link

Hi,

Is there any way to validate for URI templates? Looks like the "format": "uri" fails when given a template.

@handrews
Copy link

handrews commented May 2, 2017

@JulienPalard The latest draft of the specification (which was published a few weeks ago so is not yet broadly implemented) now includes a "uri-template" format for exactly this reason:

https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-8.3.8

@JulienPalard
Copy link
Author

I love when I'm in sync with specs þ

Does any work to implement it has started?

@Julian
Copy link
Member

Julian commented May 2, 2017

@JulienPalard I was waiting for a release, so should be implemented shortly -- patches welcome as well of course.

@Julian
Copy link
Member

Julian commented Jun 11, 2017

Handling this alongside the rest of draft-06 in #337 -- keep an eye out. There's a branch with the start of it (called draft-06), patches still welcome to get it out quicker.

@Julian Julian closed this as completed Jun 11, 2017
Julian added a commit that referenced this issue May 2, 2020
361620ecf [355] Move non-BMP pattern tests to optional
e1f870b1c Add "comment" to the tests
bc68a6b80 Merge pull request #332 from jdesrosiers/unevaluated-tests
ab9e3d5c5 2 is more than 1.
846dd7abd Draft 4 isn't the most widely used anymore thankfully.
16191632e A bit less informal language in the README.
6077b07e1 Update unevaluatedProperties and unevaluatedItems tests

git-subtree-dir: json
git-subtree-split: 361620ecf18b71883f8522cb4c7e95e3e0adcdce
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