Add separate docs for v0.8/v1
This commit is contained in:
parent
3150f98fc8
commit
d511d447f7
61 changed files with 1620 additions and 58 deletions
12
docs/_v0/examples/4-custom_settings.md
Normal file
12
docs/_v0/examples/4-custom_settings.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
title: Custom Schema Settings
|
||||
parent: Examples
|
||||
nav_order: 4
|
||||
summary: Generating a schema using custom settings which changes how Option<T> is handled.
|
||||
---
|
||||
|
||||
# Custom Schema Settings
|
||||
|
||||
The `gen` module allows you to customise how schemas are generated. For example, the default behaviour for `Option<T>` is to include `null` in the schema's `type`s, but we can instead add a `nullable` property to its schema:
|
||||
|
||||
{% include example_v0.md name="custom_settings" %}
|
Loading…
Add table
Add a link
Reference in a new issue