Skip to content
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

Clarify data model vs unicode characters #455

Merged
merged 1 commit into from
Oct 26, 2017

Conversation

handrews
Copy link
Contributor

This addresses #221.

JSON Schema does not care about unicode characters, only the
data model. Vocabularies SHOULD account for this by working
with data model strings instead of the original unicode
representation of numbers.

For example, define a value for the "format" validation keyword
that indicates that a string should be interpreted as a fixed-point
decimal if you wish to retain precision information in your data.

JSON Schema does not care about unicode characters, only the
data model.  Vocabularies SHOULD account for this by working
with data model strings instead of the original unicode
representation of numbers.

For example, define a value for the "format" validation keyword
that indicates that a string should be interpreted as a fixed-point
decimal if you wish to retain precision information in your data.
@seagreen
Copy link
Collaborator

Look 👌 to me!

If you wanted to you could add an example (perhaps about how this means JSON Schema doesn't distinguish between 1.0 and 1), but that's a judgement call.

@handrews
Copy link
Contributor Author

@seagreen thanks! I think I'm going to leave that out for now, mainly because there are a couple of issues filed that may address how to work with such distinctions using format. So if people are interested I'd rather they took a look at the GitHub issues than saw something quite that definitive and left it alone.

@handrews handrews merged commit a251b47 into json-schema-org:master Oct 26, 2017
@handrews handrews deleted the json-vs-data-model branch October 26, 2017 17:08
@gregsdennis gregsdennis added clarification Items that need to be clarified in the specification and removed Type: Maintenance labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Items that need to be clarified in the specification core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants