mirror of https://github.com/zulip/zulip.git
116 lines
3.4 KiB
YAML
116 lines
3.4 KiB
YAML
test1:
|
|
responses:
|
|
"200":
|
|
content:
|
|
application/json:
|
|
schema:
|
|
additionalProperties: false
|
|
properties:
|
|
top_array:
|
|
type: array
|
|
items:
|
|
oneOf:
|
|
- type: object
|
|
properties:
|
|
obj:
|
|
oneOf:
|
|
- type: array
|
|
items:
|
|
type: string
|
|
- type: object
|
|
properties:
|
|
str3:
|
|
type: string
|
|
- type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
str1:
|
|
type: string
|
|
str2:
|
|
type: string
|
|
example:
|
|
{
|
|
"top_array":
|
|
[
|
|
{"obj": {"str3": "test"}},
|
|
[{"str1": "success", "str2": "success"}],
|
|
],
|
|
}
|
|
test2:
|
|
responses:
|
|
"200":
|
|
content:
|
|
application/json:
|
|
schema:
|
|
additionalProperties: false
|
|
properties:
|
|
top_array:
|
|
type: array
|
|
items:
|
|
oneOf:
|
|
- type: object
|
|
properties:
|
|
obj:
|
|
oneOf:
|
|
- type: array
|
|
items:
|
|
type: string
|
|
- type: object
|
|
additionalProperties: false
|
|
properties:
|
|
str3:
|
|
type: string
|
|
- type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
str1:
|
|
type: string
|
|
str2:
|
|
type: string
|
|
example:
|
|
{
|
|
"top_array":
|
|
[
|
|
{"obj": {"str3": "test", "str4": "extraneous"}},
|
|
[{"str1": "success", "str2": "success"}],
|
|
],
|
|
}
|
|
test3:
|
|
responses:
|
|
"200":
|
|
content:
|
|
application/json:
|
|
schema:
|
|
additionalProperties: false
|
|
properties:
|
|
top_array:
|
|
type: array
|
|
items:
|
|
oneOf:
|
|
- type: object
|
|
properties:
|
|
obj:
|
|
oneOf:
|
|
- type: array
|
|
items:
|
|
type: string
|
|
- type: object
|
|
- type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
str1:
|
|
type: string
|
|
str2:
|
|
type: string
|
|
example:
|
|
{
|
|
"top_array":
|
|
[
|
|
{"obj": {"str3": "test"}},
|
|
[{"str1": "success", "str2": "success"}],
|
|
],
|
|
}
|