Comments (1)
Hi @shashkiranr it looks like there is some confusion. The compileParser
method is only available for JSON Type Definition see here - https://ajv.js.org/api.html#ajv-compileparser-schema-object-json-string-any
To use JTD you need to import AJV differently, but it also uses a different schema format.
import Ajv, {JTDSchemaType} from "ajv/dist/jtd"
from ajv.
Related Issues (20)
- Add `validateSchema` "strict" mode HOT 6
- Is this repo alive? HOT 1
- console.log cannot be used as a default HOT 1
- Replace fast-deep-equal with dequal HOT 1
- Getting "Invalid regular expression /<myRegex>/" error while compiling HOT 1
- Change empty string to `undefined` before validation HOT 3
- Catch Enum Errors value HOT 4
- RE2 integration incorrectly typed HOT 2
- `regexp` should be wrapped in try/catchs HOT 6
- Add `sideEffects: false` flag to `package.json` to allow tree-shaking HOT 5
- Add support for comments inside JSON HOT 3
- serializing Infinity creates invalid JSON HOT 5
- Unexpected behaviour of unevaluatedProperties when used with dependentSchemas HOT 1
- Picking or Omiting Certain Properties From a Schema Definition to make another definition HOT 1
- Replace `uri-js` abandoned dependency HOT 3
- [feature request] Add more formats and support for `qt-*` keys HOT 1
- Allow it to work on edge (e.g. cloudflare workers) HOT 4
- Any object is valid HOT 5
- removeAdditional not workig as expected
- type `JSONSchemaType` cannot be resolved in generic/nonresolved context
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 ajv.