All Schemas are validated against
See original GitHub issueCurrently, it seems like every JSON schema registered is validated against.
registerSchema(SchemaOne);
registerSchema(SchemaTwo);
app.get('/validate-one/', (req, res, next) => {
validate(SchemaOne.name, req.params).then(console.log);
});
The above will log all errors including those for SchemaOne & SchemaTwo.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Understanding JSON Schema 2020-12 documentation
The keywords used to combine schemas are: allOf: (AND) Must be valid against all of the subschemas; anyOf: (OR) Must be valid against...
Read more >Schema Validation
An XML Schema precisely defines the elements and attributes that constitute an instance XML document.
Read more >Schema Validation — MongoDB Manual
Schema validation lets you create validation rules for your fields, such as allowed data types and value ranges. MongoDB uses a flexible schema...
Read more >oneOf, anyOf, allOf, not - Swagger
To be valid against allOf , the data provided by the client must be valid against all of the given subschemas. In the...
Read more >Schema Validation on Confluent Server
Schema Validation enables the broker to verify that data produced to a Kafka topic is using a valid schema ID in Schema Registry...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

#204 I sent a pull request which will fix the problem
This will be included in the next release.