Comments (3)
There are many situations that can, and legitimately so, result in a schema for which it's impossible for any data to be valid against.
This is expected. There may be conflicts. One keyword doesn't take any precedence (in terms of preventing another from being used, in your example) than another.
It's also worth noting, that by default, format
"does nothing", and implementations MAY choose to provide another layer of validation. You can't expect others using your schema to rely on format
.
from understanding-json-schema.
Thanks for the quick reply!
Understood, so from what I gathered it's up to corresponding implementations to understand what they should do in these cases given schema. And the schema I have mentioned is correct and valid.
Let me know if anything is wrong with what I mentioned.
from understanding-json-schema.
That's correct. Closing issue as question has been answered.
from understanding-json-schema.
Related Issues (20)
- Since we already have a new 2019-09 draft, would it be the case to create a draft-07 branch in this repository? Or right before adding info specific to 2019-09? HOT 3
- Truth table for conditional subschemas is incomplete HOT 15
- Link to "RFC 3339, section 5.6" is not correct
- Date format in green-tick example is not in ISO8601 format HOT 4
- Draft 2019-09: Use correct $schema URI HOT 1
- wrong use of allof instead of anyof? HOT 1
- PR build previews do not include PDF version HOT 4
- Update to reflect the proper usage of $ref with #/$def/ JSON pointers HOT 1
- Migrate from Travis CI to GitHub Actions for build process HOT 3
- Migrate netlify build previews config to repo HOT 1
- Is there a default for a string's maxLength property if none is specified? HOT 1
- curious why the cover of the homepage is a big octopus? HOT 1
- Fix netlify build previews HOT 6
- Incorrect `$anchor` example in documentation
- Tuple validation, required elements in tuple HOT 2
- Small grammar issue (effect versus affect)
- condition and allOf HOT 1
- Typo in understanding json schema annotations
- Archive the repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from understanding-json-schema.