From 5be0df02c59aff880d12d83b9c1d94f5560a65cb Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 14 Oct 2021 13:23:04 -0600 Subject: [PATCH] Start annotating which version of the spec added a thing (#3425) * Introduce a new "added-in" template and use it on endpoints * Use "added-in" on schema properties too * Annotate sections of the spec with their added versions * Demo of "added-in" on a room version (to be fleshed out) * Use clearer versioning semantics * Update and fix validator for Swagger custom properties * Fix docs --- .gitignore | 3 +- content/client-server-api/_index.md | 8 +- .../modules/end_to_end_encryption.md | 2 + .../client-server-api/modules/guest_access.md | 2 +- .../modules/instant_messaging.md | 28 +- content/client-server-api/modules/secrets.md | 2 + content/rooms/v7.md | 2 +- data/api/client-server/banning.yaml | 2 + data/api/client-server/cross_signing.yaml | 2 + data/api/client-server/inviting.yaml | 1 + data/api/client-server/joining.yaml | 2 + data/api/client-server/key_backup.yaml | 3 + data/api/client-server/keys.yaml | 2 + data/api/client-server/knocking.yaml | 1 + data/api/client-server/leaving.yaml | 1 + .../api/client-server/sso_login_redirect.yaml | 2 + data/api/client-server/whoami.yaml | 1 + data/api/identity/versions.yaml | 1 + .../event-schemas/m.device_list_update.yaml | 1 + .../event-schemas/m.signing_key_update.yaml | 1 + data/api/server-server/knocks.yaml | 2 + data/api/server-server/user_keys.yaml | 2 + data/event-schemas/schema/m.room.member.yaml | 1 + layouts/partials/added-in.html | 13 + layouts/partials/events/render-event.html | 4 + .../partials/openapi/render-object-table.html | 2 +- .../partials/openapi/render-operation.html | 4 + layouts/shortcodes/added-in.html | 8 + layouts/shortcodes/definition.html | 4 + openapi_extensions.md | 6 + scripts/package-lock.json | 287 ++++++++++++++++++ scripts/package.json | 2 +- 32 files changed, 380 insertions(+), 22 deletions(-) create mode 100644 layouts/partials/added-in.html create mode 100644 layouts/shortcodes/added-in.html create mode 100644 scripts/package-lock.json diff --git a/.gitignore b/.gitignore index 122c7c6e..2a58c6c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,8 @@ -/api/node_modules +node_modules /assets /assets.tar.gz /data/msc /env* -/node_modules /resources /scripts/gen /scripts/continuserv/continuserv diff --git a/content/client-server-api/_index.md b/content/client-server-api/_index.md index 5b4cb5d8..04d20b52 100644 --- a/content/client-server-api/_index.md +++ b/content/client-server-api/_index.md @@ -1039,9 +1039,9 @@ This returns an HTML and JavaScript page which can perform the entire login process. The page will attempt to call the JavaScript function `window.onLogin` when login has been successfully completed. -Non-credential parameters valid for the `/login` endpoint can be -provided as query string parameters here. These are to be forwarded to -the login endpoint during the login process. For example: +{{% added-in v="1.1" %}} Non-credential parameters valid for the `/login` +endpoint can be provided as query string parameters here. These are to be +forwarded to the login endpoint during the login process. For example: GET /_matrix/static/client/login/?device_id=GHTYAJCE @@ -1746,6 +1746,8 @@ The allowable state transitions of membership are: ##### Knocking on rooms +{{% added-in v="1.1" %}} +