mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
doc: swagger reusable schema definitions supported only for malli
This commit is contained in:
parent
431242c926
commit
fc132f3a92
1 changed files with 11 additions and 1 deletions
|
|
@ -286,7 +286,17 @@ Example with:
|
|||
; ("/common/ping" "/one/ping" "/two/ping" "/two/deep/ping")
|
||||
```
|
||||
|
||||
### TODO
|
||||
## Reusable schema definitions
|
||||
|
||||
Swagger supports having reusable schema definitions under the
|
||||
`"definitions"` key. These can be reused in different parts of
|
||||
swagger.json using the `"$ref": "#/definitions/Foo"` syntax.
|
||||
|
||||
Reusable schema objects are generated for Malli `:ref`s and vars.
|
||||
Currently (as of 0.7.2), reusable schema objects are **not** generated
|
||||
for Plumatic Schema or Spec.
|
||||
|
||||
## TOD
|
||||
|
||||
* ClojureScript
|
||||
* example for [Macchiato](https://github.com/macchiato-framework)
|
||||
|
|
|
|||
Loading…
Reference in a new issue