Comments (2)
Yes, the purpose of this crate is to generate a json that validate the data and the structure that you want to build. I don't know what "draft" and version they are using, sometime I struggle to find the correct way to reproduce a pattern.
from schemars.
As @SwannHERRERA says, this crate generates schemas according to the JSON Schema specification (https://json-schema.org/specification). By default, the latest version of schemars (1.0.0-alpha.7) uses the "draft 2020-12" version of JSON Schema, which is currently the latest available version of the JSON Schema, but this may change in a future schemars version.
from schemars.
Related Issues (20)
- `Option` no longer has a default of null as of v0.8.18 HOT 2
- Range for standard number types
- Expected schemars description attribute to be a string HOT 2
- expected validate path attribute to be a string: `path = "..."` HOT 1
- gen keyword is reserved in Rust 2024 HOT 2
- Check if Value satisfies RootSchema HOT 1
- Nested internally tagged enums
- bug(schemars_derive/docs): newlines get stripped in example blocks HOT 1
- flatten of `Option<Enum>` generates schema where enum is required HOT 3
- Document macro attributes HOT 4
- Skips documenting the first endpoint defined after `web::scope`
- Rust-analyzer lsp server now gives me macro error HOT 3
- `JsonSchema` trait with `erased_serde` (object safety) HOT 2
- json schema float instead of int for std::primitive::i8 max\min HOT 1
- Improvements to automated tests
- Sponsor Page? HOT 2
- #[schemars(required)] special case for Option<T> HOT 7
- Support field aliases
- Help: Generate json objects based on jsonschema
- 🏁 RoSctober 2024: The Open Source Developer Challenge is about to start
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 schemars.