Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@kdy1 kdy1 released this 25 Jan 11:53
· 78 commits to master since this release

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.