Add support for pattern formats for patternProperties
(#1796)
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
26ce3929b4
commit
2edfb21d5d
6 changed files with 80 additions and 8 deletions
|
@ -17,7 +17,7 @@ properties:
|
|||
"^@":
|
||||
type: "object"
|
||||
description: "An empty object for future enhancement"
|
||||
x-pattern: "$USER_ID"
|
||||
x-pattern-format: "mx-user-id"
|
||||
required:
|
||||
- ignored_users
|
||||
type:
|
||||
|
|
|
@ -16,7 +16,7 @@ properties:
|
|||
patternProperties:
|
||||
"^\\$":
|
||||
type: object
|
||||
x-pattern: "$EVENT_ID"
|
||||
x-pattern-format: "mx-event-id"
|
||||
title: Event Receipts
|
||||
description: |-
|
||||
The collection of receipts for this event ID.
|
||||
|
@ -34,7 +34,7 @@ properties:
|
|||
description: |-
|
||||
The mapping of user ID to receipt. The user ID is the
|
||||
entity who sent this receipt.
|
||||
x-pattern: "$USER_ID"
|
||||
x-pattern-format: "mx-user-id"
|
||||
properties:
|
||||
ts:
|
||||
type: integer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue