Comments (3)
I'm sorry for having to ask this (I don't like getting these myself), but is this library still maintained?
We need the latest AJV to get access to the latest json-schema draft, and better-ajv-errors is holding us back. I need to decide if it's worth waiting, or if I should switch back to worse-ajv-errors
;)
from better-ajv-errors.
We worked around this issue with this, before sending the errors to betterAjvErrors:
for (const error of errors) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore Workaround https://github.com/atlassian/better-ajv-errors/issues/90
error.dataPath = error.instancePath;
}
from better-ajv-errors.
Happened to us too.
This is probably due to the following breaking change of AJV 8:
dataPath
property replaced withinstancePath
cc @orgads
from better-ajv-errors.
Related Issues (20)
- New CVE in jsonpointer needs upgrade to 5.0.0 to fix HOT 4
- New CVE in json-schema 0.3.0 needs upgrade to fix HOT 1
- Import fails for ESM HOT 4
- Integration with ajv-errors (or otherwise support custom error messages) HOT 3
- Dependency Dashboard
- Misleading error when describing deeply nested `anyOf` failure
- Error when data value is undefined
- old chalk 2 using __proto__ is installed by babel/code-frame
- Show actual incorrect constant rather than "const must be equal to constant"
- Compatibility with fastify HOT 1
- Reporting a vulnerability HOT 1
- Confusing error message while using `minItems`
- Types are not correctly exported for a package supporting both ESM and CJS HOT 5
- Readme security improvement: Split up `npm` and `yarn` code blocks HOT 1
- Bug? Array in `enum` gets TypeError: left.charCodeAt is not a function HOT 1
- Feature: improve description of dependency requirements
- Make `unevaluatedProperties` error message as clear as `additionalProperties` message
- Error when use in angular 16 HOT 2
- List on json-schema.org
- Custom error message based errors do not collect
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 better-ajv-errors.