Skip to content

Commit

Permalink
doc: swagger reusable schema definitions supported only for malli
Browse files Browse the repository at this point in the history
  • Loading branch information
opqdonut committed Nov 28, 2024
1 parent 431242c commit fc132f3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion doc/ring/swagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc132f3

Please sign in to comment.