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

Fix enum types in JSON schemas #1634

Merged
merged 3 commits into from
Sep 27, 2023
Merged

Fix enum types in JSON schemas #1634

merged 3 commits into from
Sep 27, 2023

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented Sep 12, 2023

type: enum does not exist, as an enum can be of any type.

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

`type: enum` does not exist, as an enum can be of any type.

Signed-off-by: Kévin Commaille <[email protected]>
@zecakeh zecakeh requested a review from a team as a code owner September 12, 2023 12:56
Signed-off-by: Kévin Commaille <[email protected]>
@KitsuneRal
Copy link
Member

That looks good, but should we also show string instead of enum in the spec text then? For consistency.

@zecakeh
Copy link
Contributor Author

zecakeh commented Sep 12, 2023

Sure we could do that, it should be simple enough. Do you want me to add a commit to this PR or should it be in another PR?

@KitsuneRal
Copy link
Member

Just add another commit here.

Signed-off-by: Kévin Commaille <[email protected]>
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but maybe @KitsuneRal wants another look?

@richvdh
Copy link
Member

richvdh commented Sep 27, 2023

Assuming kitsune is happy here.

@richvdh richvdh merged commit 5672bdb into matrix-org:main Sep 27, 2023
10 checks passed
@zecakeh zecakeh deleted the fix-enums branch September 27, 2023 12:30
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.

3 participants