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

Convert event schemas to yaml #338

Merged
merged 2 commits into from
Jun 22, 2016
Merged

Convert event schemas to yaml #338

merged 2 commits into from
Jun 22, 2016

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 22, 2016

We've decided to make the event schemas YAML, so we might as well take
advantage of it.

(This conversion was done mostly automatically, except for:

  • s/null/"null"/ in m.room.member
  • reformat description in m.room.power_levels

We've decided to make the event schemas YAML, so we might as well take
advantage of it.

(This conversion was done mostly automatically, except for:
 - s/null/"null"/ in m.room.member
 - reformat description in m.room.power_levels
displayname:
description: 'The display name for this user, if any. This is added by the homeserver.'
type:
- string
Copy link
Member

Choose a reason for hiding this comment

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

Whilst I appreciate this will already be a string type, it's slightly misleading when it's used in an array along with other strings which have double quotes around it. Can we be consistent and double-quote the lot?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

thanks

@kegsay
Copy link
Member

kegsay commented Jun 22, 2016

LGTM aside from a tiny nit.

Quote "string" for consistency with "null"
@richvdh richvdh merged commit 3085257 into master Jun 22, 2016
@richvdh richvdh deleted the rav/yamlify_event_schemas branch July 13, 2016 10:13
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