mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-03 17:54:14 +02:00
Specify CNIG pattern for custom fields
This commit is contained in:
parent
5d5b561140
commit
76b48e25d0
|
|
@ -49,6 +49,7 @@ paths:
|
||||||
- type: string
|
- type: string
|
||||||
enum: ["avatar_url", "displayname"]
|
enum: ["avatar_url", "displayname"]
|
||||||
- type: string
|
- type: string
|
||||||
|
pattern: '^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$'
|
||||||
description: Must follow the
|
description: Must follow the
|
||||||
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
requestBody:
|
requestBody:
|
||||||
|
|
@ -148,6 +149,7 @@ paths:
|
||||||
- type: string
|
- type: string
|
||||||
enum: ["avatar_url", "displayname"]
|
enum: ["avatar_url", "displayname"]
|
||||||
- type: string
|
- type: string
|
||||||
|
pattern: '^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$'
|
||||||
description: Must follow the
|
description: Must follow the
|
||||||
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -215,6 +217,7 @@ paths:
|
||||||
- type: string
|
- type: string
|
||||||
enum: ["avatar_url", "displayname"]
|
enum: ["avatar_url", "displayname"]
|
||||||
- type: string
|
- type: string
|
||||||
|
pattern: '^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$'
|
||||||
description: Must follow the
|
description: Must follow the
|
||||||
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
responses:
|
responses:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue