mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 04:54:10 +01:00
Fix enum types in JSON schemas
`type: enum` does not exist, as an enum can be of any type. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
838dec272c
commit
fe2b96f480
|
|
@ -15,7 +15,7 @@ type: object
|
||||||
title: m.login.sso flow schema
|
title: m.login.sso flow schema
|
||||||
properties:
|
properties:
|
||||||
type:
|
type:
|
||||||
type: enum
|
type: string
|
||||||
enum: ["m.login.sso"]
|
enum: ["m.login.sso"]
|
||||||
description: The string `m.login.sso`
|
description: The string `m.login.sso`
|
||||||
example: "m.login.sso"
|
example: "m.login.sso"
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ allOf:
|
||||||
- type: object
|
- type: object
|
||||||
properties:
|
properties:
|
||||||
edu_type:
|
edu_type:
|
||||||
type: enum
|
type: string
|
||||||
enum: ['m.device_list_update']
|
enum: ['m.device_list_update']
|
||||||
description: The string `m.device_list_update`.
|
description: The string `m.device_list_update`.
|
||||||
example: "m.device_list_update"
|
example: "m.device_list_update"
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ allOf:
|
||||||
- type: object
|
- type: object
|
||||||
properties:
|
properties:
|
||||||
edu_type:
|
edu_type:
|
||||||
type: enum
|
type: string
|
||||||
enum: ['m.direct_to_device']
|
enum: ['m.direct_to_device']
|
||||||
description: The string `m.direct_to_device`.
|
description: The string `m.direct_to_device`.
|
||||||
example: "m.direct_to_device"
|
example: "m.direct_to_device"
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ allOf:
|
||||||
- type: object
|
- type: object
|
||||||
properties:
|
properties:
|
||||||
edu_type:
|
edu_type:
|
||||||
type: enum
|
type: string
|
||||||
enum: ['m.presence']
|
enum: ['m.presence']
|
||||||
description: The string `m.presence`
|
description: The string `m.presence`
|
||||||
example: "m.presence"
|
example: "m.presence"
|
||||||
|
|
@ -44,7 +44,7 @@ allOf:
|
||||||
description: The user ID this presence EDU is for.
|
description: The user ID this presence EDU is for.
|
||||||
example: "@john:matrix.org"
|
example: "@john:matrix.org"
|
||||||
presence:
|
presence:
|
||||||
type: enum
|
type: string
|
||||||
enum: ['offline', 'unavailable', 'online']
|
enum: ['offline', 'unavailable', 'online']
|
||||||
description: The presence of the user.
|
description: The presence of the user.
|
||||||
example: "online"
|
example: "online"
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ allOf:
|
||||||
- type: object
|
- type: object
|
||||||
properties:
|
properties:
|
||||||
edu_type:
|
edu_type:
|
||||||
type: enum
|
type: string
|
||||||
enum: ['m.receipt']
|
enum: ['m.receipt']
|
||||||
description: The string `m.receipt`
|
description: The string `m.receipt`
|
||||||
example: "m.receipt"
|
example: "m.receipt"
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ allOf:
|
||||||
- type: object
|
- type: object
|
||||||
properties:
|
properties:
|
||||||
edu_type:
|
edu_type:
|
||||||
type: enum
|
type: string
|
||||||
enum: ['m.signing_key_update']
|
enum: ['m.signing_key_update']
|
||||||
description: The string `m.signing_update`.
|
description: The string `m.signing_update`.
|
||||||
example: "m.signing_key_update"
|
example: "m.signing_key_update"
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ allOf:
|
||||||
- type: object
|
- type: object
|
||||||
properties:
|
properties:
|
||||||
edu_type:
|
edu_type:
|
||||||
type: enum
|
type: string
|
||||||
enum: ['m.typing']
|
enum: ['m.typing']
|
||||||
description: The string `m.typing`
|
description: The string `m.typing`
|
||||||
example: "m.typing"
|
example: "m.typing"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue