question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All Schemas are validated against

See original GitHub issue

Currently, 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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
zendercommented, May 23, 2018

#204 I sent a pull request which will fix the problem

3reactions
NoNameProvidedcommented, Jul 19, 2018

This will be included in the next release.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found