More documentation
- README.md contains usage examples.
- Many stuffs are documented.
Entity
improvements
- Implemented for more std types
BTreeSet, HashSet, LinkedList, VecDeque implements entity. It means that you can use it with http handlers, like
#[get("/")]
fn list() -> Json<HashSet<String>> {}
#[derive(Scheme)]
improvements
- Supports specifying example value.
See document.
- It's a no-op when
openapi
feature is disabled.
This makes using #[derive(Schema)]
safe. It is now recommended to add #[derive(Schema)]
even if you are not using openapi.
openapi improvements
You can use Builder.prefix to prepend the path to the generated document.