You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.2 KiB
YAML
67 lines
2.2 KiB
YAML
7 months ago
|
# Copyright 2024 Commaille Kévin
|
||
|
#
|
||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
# you may not use this file except in compliance with the License.
|
||
|
# You may obtain a copy of the License at
|
||
|
#
|
||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||
|
#
|
||
|
# Unless required by applicable law or agreed to in writing, software
|
||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
# See the License for the specific language governing permissions and
|
||
|
# limitations under the License.
|
||
|
|
||
3 weeks ago
|
# This file contains the list of string formats supported for the `format` key
|
||
|
# and the `x-pattern-format` extension within JSON Schema objects in the
|
||
|
# OpenAPI documents within the Matrix Specification. See
|
||
|
# `openapi_extensions.md` [1] for more details.
|
||
7 months ago
|
#
|
||
3 weeks ago
|
# [1]: https://github.com/matrix-org/matrix-spec/blob/main/openapi_extensions.md#custom-x-pattern-format-key-and-custom-formats
|
||
7 months ago
|
#
|
||
3 weeks ago
|
# Custom formats defined in the Matrix specification should always use the `mx-`
|
||
|
# prefix. They should link to the section containing the definition of the
|
||
|
# format in the spec.
|
||
|
#
|
||
|
# Formats that are already supported in the JSON Schema specification should
|
||
|
# link to the RFC where they are defined, and should not use a regex to allow
|
||
|
# tools that recognize the format to validate it properly.
|
||
|
# See <https://json-schema.org/understanding-json-schema/reference/string#built-in-formats>.
|
||
|
#
|
||
|
# All entries have the form:
|
||
|
#
|
||
|
# key:
|
||
7 months ago
|
# title: The title rendered in the specification
|
||
|
# url: /url/to#definition
|
||
3 weeks ago
|
# # regex: A regex that can be used to validate the custom format if possible.
|
||
|
# It should be used as the `pattern` of the string.
|
||
7 months ago
|
|
||
|
mx-user-id:
|
||
|
title: User ID
|
||
|
url: /appendices#user-identifiers
|
||
|
# regex: "^@"
|
||
|
|
||
|
mx-event-id:
|
||
|
title: Event ID
|
||
|
url: /appendices#event-ids
|
||
|
# regex: "^\\$"
|
||
7 months ago
|
|
||
7 months ago
|
mx-room-id:
|
||
|
title: Room ID
|
||
|
url: /appendices#room-ids
|
||
|
# regex: "^!"
|
||
|
|
||
6 months ago
|
mx-server-name:
|
||
|
title: Server Name
|
||
|
url: /appendices#server-name
|
||
|
# no regex
|
||
|
|
||
|
mx-mxc-uri:
|
||
|
title: Matrix Content URI
|
||
|
url: /client-server-api#matrix-content-mxc-uris
|
||
|
# regex: "^mxc:\\/\\/"
|
||
|
|
||
7 months ago
|
uri:
|
||
|
title: URI
|
||
3 weeks ago
|
url: https://datatracker.ietf.org/doc/html/rfc3986
|