-
Notifications
You must be signed in to change notification settings - Fork 63
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
Do we need a URI datatype? #226
Comments
In JSON Schema this is handled with the |
Yes, currently the Within data schemas, they would be modelled is a string type together with format. |
what is the conclusion of this issue here? The |
Not sure I understand this comment with respect to the "format", since there is no "format" of a data schema. We should consider adding these types too, since they are convenient and enable additional validation of a TD. |
@mlagally the JSON Schema Validation for the The reason it is optional is that validating some formats is somewhere between expensive and impossible. For example, I don't think I've ever found a definitive way to tell if an email address is syntactically correct, as there's such a confusing history of standards vs actual behavior over the past several decades. URIs are also a challenge, as many of the details are scheme-specific, and new schemes can be created by anyone at any time. There are a lot of examples where it's easy to tell that something is not a valid URI, but being absolutely certain that it is valid is sometimes very hard depending on what the scheme requires. |
Of course, the TD is free to impose more clear requirements on how |
From Princeton Testfest: |
done |
The description of format will be extended that also costumer based values can be assigned |
We should consider adding a URI conforming to https://tools.ietf.org/html/rfc3986 to the set of supported data types.
The text was updated successfully, but these errors were encountered: