matrix-spec/data/event-schemas/schema/m.room.message$m.server_notice.yaml
V02460 6e16a19ac9
Some checks failed
Spec / 🔎 Validate OpenAPI specifications (push) Has been cancelled
Spec / 🔎 Check Event schema examples (push) Has been cancelled
Spec / 🔎 Check OpenAPI definitions examples (push) Has been cancelled
Spec / 🔎 Check JSON Schemas inline examples (push) Has been cancelled
Spec / ⚙️ Calculate baseURL for later jobs (push) Has been cancelled
Spec / 📢 Run towncrier for changelog (push) Has been cancelled
Spell Check / Spell Check with Typos (push) Has been cancelled
Spec / 🐍 Build OpenAPI definitions (push) Has been cancelled
Spec / 📖 Build the spec (push) Has been cancelled
Spec / 🔎 Validate generated HTML (push) Has been cancelled
Spec / 📖 Build the historical backup spec (push) Has been cancelled
[schema] Application Service Registration meta schema (#2132)
2025-08-27 07:39:05 +01:00

42 lines
1.1 KiB
YAML

---
$schema: https://json-schema.org/draft/2020-12/schema
allOf:
- $ref: core-event-schema/room_event.yaml
description: Represents a server notice for a user.
properties:
content:
properties:
body:
description: A human-readable description of the notice.
type: string
msgtype:
enum:
- m.server_notice
type: string
server_notice_type:
description: |-
The type of notice being represented.
type: string
admin_contact:
description: |-
A URI giving a contact method for the server administrator. Required if the
notice type is `m.server_notice.usage_limit_reached`.
type: string
limit_type:
description: |-
The kind of usage limit the server has exceeded. Required if the notice type is
`m.server_notice.usage_limit_reached`.
type: string
required:
- msgtype
- body
- server_notice_type
type: object
type:
enum:
- m.room.message
type: string
title: ServerNoticeMessage
type: object