Comments (2)
Thanks @sagold for the quick fix and yes I will be eventually updating to the latest version 👍🏼
I had actually already tested v8.0.0-rc1 before noticing the issue and it looks fine now but wanted to wait for the full release before using it in my production project 😉
from json-schema-library.
Hi Marten.
Thank you very much for reporting this issue.
The schema type was compared to the actual js type and thus failed for integer. This has been tested and fixed: https://github.com/sagold/json-schema-library/runs/10959229555#r0s17.
I published a version v7.4.5
including this fix.
Note that I am preparing the next major release v8. I have released a version v8.0.0-rc2
which also includes this fix. Since you are upgrading, you might want to go for v8. In case you do, pay attention to the following:
- renamed
JSON
types and variables toJson
, e.g.JSONSchema
->JsonSchema
getTemplate
will add only required properties per default. UseaddOptionalProps:true
to change this behaviourgetTemplate
will respectadditionalProperties:true
if missing
Cheers!
from json-schema-library.
Related Issues (20)
- Clearly document how remote schemas are identified HOT 3
- ESM-Bundle for using in browser HOT 1
- getTemplate loses compiled references HOT 2
- Top level "oneOf" does not validate correctly HOT 2
- Support for future JSON Schema Drafts / Specifications HOT 3
- Template generation for arrays with `anyOf` clobbers valid default values using first schema's template HOT 3
- Cannot be used in browser-based applications that set a CSP which disallows unsafe-eval HOT 4
- multipleOf running into floating point issue HOT 10
- Wrongful Error on chained negative logic If cases HOT 4
- Support for `idn-email` fromat in Draft07 HOT 1
- The purpose of minLengthOneError HOT 2
- `patternProperties` schemas cause `getSchema` to mangle subsequent pointers HOT 2
- Request for Full ESM Support and Enabling "type: module" HOT 14
- Mutiple typeIds [not, oneOf] matched in subschema HOT 1
- Remove additional properties HOT 1
- Date Error Typo HOT 2
- "export 'default' (imported as 'deepmerge') was not found in 'deepmerge'
- MinItemsError rendering incorrectly HOT 2
- Array values mutated during validate when allOf exists HOT 5
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 json-schema-library.