Comments (1)
The problem is that there's no way of predicting what an empty array is supposed to have. How would the library know that the array is supposed to have only strings and not numbers? I think your best option is post process the generated schema, which should be trivial.
from json-schema-inferrer.
Related Issues (20)
- it will be better to provide a cli tool HOT 1
- Support for JSON Schema 2019-09 Spec HOT 1
- intelliJ gradle dependency failure HOT 2
- It is not parsed according to the original JSON field order HOT 1
- Not support const field. HOT 1
- There is no JsonNode's key in GenericSchemaFeatureInput. HOT 2
- JSON is a long type, but schema is an integer HOT 1
- Maven dependency-check displays json-schema-inferrer-0.1.4 as Critical because the vulnerability CVE-2021-3918 HOT 2
- The version of jackson-databind has a vulnerability
- [ Feature] Is there any way to generate random data with the json schema HOT 2
- Can you deploy the latest version to the Maven Repository? HOT 1
- Doesn't work with Java 8 HOT 2
- Upgrade on Draft version HOT 1
- Need JAR HOT 3
- $ref and $id HOT 1
- Build Errors. HOT 2
- Installation of json-schema-inferrer HOT 2
- State of the repo HOT 2
- Field order is different in the schema 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-inferrer.