Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keys.yml: fix one_time_keys object contents #1127

Merged
merged 2 commits into from
Jun 15, 2022

Conversation

KitsuneRal
Copy link
Member

@KitsuneRal KitsuneRal commented Jun 14, 2022

The alternatives previously listed under two additionalProperties levels
are actually one more level deeper; we still can't define them in
a formal way before moving to OpenAPI 3 but at least let's be honest
and say there's always a dict where there's always a dict. Also,
since the same data structure is used in three places now, at least
give it a name, and document the actual definition (once) separately
(not using it now because it's OpenAPI 3).

Signed-off-by: Alexey Rusakov <[email protected]>

Preview: https://pr1127--matrix-spec-previews.netlify.app

The alternatives previously listed under two additionalProperties levels
are actually one _more_ level deeper; we still can't define them in
a formal way before moving to OpenAPI 3 but at least let's be honest
and say there's always a dict where there's always a dict. Also,
since the same data structure is used in three places now, at least
give it a name, and document the actual definition (once) separately
(not using it now because it's OpenAPI 3).
@KitsuneRal KitsuneRal requested a review from a team as a code owner June 14, 2022 16:56
@turt2live turt2live merged commit dcc1f4a into main Jun 15, 2022
@turt2live turt2live deleted the kitsune/fix-one-time-keys-definition branch June 15, 2022 04:03
zecakeh added a commit to zecakeh/matrix-spec that referenced this pull request Apr 24, 2024
This was commented prior to the
port to OpenAPI 3.1 for technical reasons (matrix-org#1127).
Now we can use it just fine.

Signed-off-by: Kévin Commaille <[email protected]>
zecakeh added a commit to zecakeh/matrix-spec that referenced this pull request Apr 24, 2024
This was commented prior to the
port to OpenAPI 3.1 for technical reasons (matrix-org#1127).
Now we can use it just fine.

Signed-off-by: Kévin Commaille <[email protected]>
@zecakeh zecakeh mentioned this pull request Apr 24, 2024
richvdh pushed a commit that referenced this pull request Apr 30, 2024
This was commented prior to the
port to OpenAPI 3.1 for technical reasons (#1127).
Now we can use it just fine.

Signed-off-by: Kévin Commaille <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants