mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 17:01:11 +00:00
Update malli swagger test expectations for definitions
...which should only be at the top level now.
This commit is contained in:
parent
937768651e
commit
59812a350f
1 changed files with 2 additions and 23 deletions
|
|
@ -256,7 +256,6 @@
|
||||||
400 {:schema {:type "string"}
|
400 {:schema {:type "string"}
|
||||||
:description "kosh"}
|
:description "kosh"}
|
||||||
500 {:description "fail"}}
|
500 {:description "fail"}}
|
||||||
:definitions nil
|
|
||||||
:summary "plus"}
|
:summary "plus"}
|
||||||
:post {:parameters [{:in "body",
|
:post {:parameters [{:in "body",
|
||||||
:name "body",
|
:name "body",
|
||||||
|
|
@ -281,7 +280,6 @@
|
||||||
400 {:schema {:type "string"}
|
400 {:schema {:type "string"}
|
||||||
:description "kosh"}
|
:description "kosh"}
|
||||||
500 {:description "fail"}}
|
500 {:description "fail"}}
|
||||||
:definitions nil
|
|
||||||
:summary "plus with body"}
|
:summary "plus with body"}
|
||||||
:put {:parameters [{:in "body"
|
:put {:parameters [{:in "body"
|
||||||
:name "body"
|
:name "body"
|
||||||
|
|
@ -290,33 +288,14 @@
|
||||||
:schema
|
:schema
|
||||||
{:type "object"
|
{:type "object"
|
||||||
:additionalProperties
|
:additionalProperties
|
||||||
{:$ref "#/definitions/reitit.swagger-test~1req-val"}
|
{:$ref "#/definitions/reitit.swagger-test~1req-val"}}}]
|
||||||
:definitions {::req-key
|
|
||||||
{:type "string"
|
|
||||||
:x-anyOf [{:type "string"}
|
|
||||||
{:type "string"}]}
|
|
||||||
::req-val
|
|
||||||
{:type "object"
|
|
||||||
:x-anyOf [{:type "object"}
|
|
||||||
{:type "string"}]}}}}]
|
|
||||||
:responses {200
|
:responses {200
|
||||||
{:schema
|
{:schema
|
||||||
{:$ref "#/definitions/reitit.swagger-test~1resp-map"
|
{:$ref "#/definitions/reitit.swagger-test~1resp-map"
|
||||||
:x-anyOf [{:$ref "#/definitions/reitit.swagger-test~1resp-map"}
|
:x-anyOf [{:$ref "#/definitions/reitit.swagger-test~1resp-map"}
|
||||||
{:$ref "#/definitions/reitit.swagger-test~1resp-string"}]
|
{:$ref "#/definitions/reitit.swagger-test~1resp-string"}]}
|
||||||
:definitions {::resp-map {:type "object"}
|
|
||||||
::resp-string
|
|
||||||
{:type "string", :minLength 1}}}
|
|
||||||
:description ""}
|
:description ""}
|
||||||
500 {:description "fail"}}
|
500 {:description "fail"}}
|
||||||
:definitions {::req-key {:type "string"
|
|
||||||
:x-anyOf [{:type "string"}
|
|
||||||
{:type "string"}]}
|
|
||||||
::req-val {:type "object"
|
|
||||||
:x-anyOf [{:type "object"}
|
|
||||||
{:type "string"}]}
|
|
||||||
::resp-map {:type "object"}
|
|
||||||
::resp-string {:type "string", :minLength 1}}
|
|
||||||
:summary "plus put with definitions"}}
|
:summary "plus put with definitions"}}
|
||||||
"/api/schema/plus/{z}" {:get {:parameters [{:description ""
|
"/api/schema/plus/{z}" {:get {:parameters [{:description ""
|
||||||
:format "int32"
|
:format "int32"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue