mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-23 06:23:43 +01:00
Use oneOf for response schema
This commit is contained in:
parent
1947f2a72b
commit
a14740e8da
|
|
@ -126,7 +126,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
oneOf:
|
||||||
|
- type: object
|
||||||
|
- $ref: "../../event-schemas/core-event-schema/state_event.yaml
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue