Add support for pattern formats for patternProperties (#1796)

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-04-24 13:42:34 +02:00 committed by GitHub
parent 26ce3929b4
commit 2edfb21d5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 80 additions and 8 deletions

View file

@ -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:

View file

@ -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