Comments (1)
The problem you're experiencing is that your model and the expected schema don't align. For example, your model declares StudentName
, Id
, etc., in the top-level object, but your desires schema shows then to be in a sub-object under a Student
property.
You have to make your model match the desired schema in order to generate it right. This is something you'd have to do anyway to make serialization work (unless you have a custom converter, which isn't something that schema generation can detect).
from json-everything.
Related Issues (20)
- Base64 Encoding data HOT 3
- Getting errors from EvaluationResults HOT 1
- Polish language localization HOT 6
- Regression in Schema Evaluation After Upgrading from 5.5.1 to 6.0.3 HOT 16
- How to get list of JSON Pointers that have the format keyword of date-time value from a JSON Schema HOT 4
- Support xml comments on generated schema HOT 13
- Deconstruct JsonLogic for conversion into another format HOT 8
- Support Case Insensitive Match on Property Names HOT 2
- Support custom keywords in schema generation HOT 6
- Evaluate JsonRequired Attribute HOT 5
- Model with Nullable value type is invalid HOT 1
- Model is not valid when has integer value as string HOT 1
- that the custom metastructure could not be parsed HOT 4
- How to extend SchemaGenerator for DateTime HOT 7
- JsonSchema.NET DataValidation HOT 10
- Custom `IAttributeHandler` never called HOT 5
- Anchors naming of 2020 still following 2019 rules HOT 5
- ArgumentOutOfRangeException thrown when calling JsonSchema's Evaluate methods from multiple threads. HOT 3
- 2020-12 output incorrectly places annotations
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-everything.