v0.8.0
Changes
v0.8.0 includes some extensions to the schema definition and usage syntax.
- Introduces the concept of schema partials: merges the contents of one schema into the top-level of another. This is particularly useful for shared params used across multiple schemas, such as pagination parameters. (#61)
- Updates the
schema
macro DSL within request body and response definitions. Now, you can define a schema inline via the same DSL used within schema modules. This allows you to leverage partials within response or request body schemas, without needing a fully separate schema module to hold the parameters. (#62) - We now support passing a schema module ref into the
query_params
andpath_params
fields in a doc annotation. The top-level properties of the schema will be serialized into the parameters list when Rolodex compiles your docs.