Comments (7)
@WaleedAshraf I will. And will report back. It just wont be very soon as I am super busy right now with other stuffs.
from asyncapi-validator.
I think it could be dataPath
? But its always empty for me.
from asyncapi-validator.
In the above link, it says
For JTD schemas instancePath and schemaPath depend on the nature of the failure - the errors are consistent with RFC8927 (opens new window).
from asyncapi-validator.
In the params
object, you'll get which property is missing/invalid.
from asyncapi-validator.
@WaleedAshraf lets say I use "maximum". The doc says the params would be:
type ErrorParams = {
limit: number // keyword value
comparison: "<=" | ">=" | "<" | ">" // operation to compare the data to the limit,
// with data on the left and the limit on the right
}
So there is no pointer to the field that is invalid?
from asyncapi-validator.
@trsh can you test with v4.0.0, I think it should give you a better SchemaPath
.
from asyncapi-validator.
Closing this issue, as it's outdated.
from asyncapi-validator.
Related Issues (19)
- Parser expects there to be a components/messages property in the main schema HOT 3
- unknown format "int32" is used in schema HOT 6
- Feature: Support for operationId HOT 3
- custom validation: how to call validate() HOT 5
- What's the preferred way to handle invalid messages? HOT 2
- Question - CLI wrapper HOT 3
- Package asyncapi is deprecated HOT 1
- JSON references to external files are not resolved correctly HOT 1
- How to use validate() with channel with parameter? HOT 4
- Expose TypeScript types HOT 1
- Bug: Validation fails with exclusiveMinimum / exclusiveMaximum in schema HOT 1
- Can find msgIdentifier for fallowing schema HOT 8
- Feature: Use ajv-formats to validate data formats
- Invalid message gets marked valid? HOT 3
- Question: Circular References in the scheme HOT 5
- How to determine message from topic, with variables? HOT 1
- Does not support avro in AsynApi HOT 1
- Question: How to validate messages with Headers 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 asyncapi-validator.