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

Explicit field hierarchy and array sub-types #583

Merged
merged 8 commits into from
Jan 4, 2024
Merged

Conversation

richfab
Copy link
Contributor

@richfab richfab commented Jan 4, 2024

Initial PR: #576

Problem

  • The field hierarchy with dashes is difficult to read.
  • The description of required fields inside optional objects is too verbose.
  • The type Array is vague.

Solution

This PR makes the field hierarchy and the array sub-types explicit:

Before After
image Screenshot 2024-01-04 at 11 02 55

The changes are editorial only. A vote is not required.

richfab and others added 4 commits January 4, 2024 09:13
* Improve readability

* replace < and > with &lt; and &gt; for display.

* all fields have a definition

---------

Co-authored-by: Tom <1955774+tdelmas@users.noreply.github.com>
@richfab richfab mentioned this pull request Jan 4, 2024
3 tasks
Copy link
Contributor

@tdelmas tdelmas left a comment

Choose a reason for hiding this comment

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

Arrays of IDs should be defined as such. (descriptions may need to be updated)

@richfab
Copy link
Contributor Author

richfab commented Jan 4, 2024

Great catch for Array<ID> @tdelmas! Thanks!

@richfab richfab requested a review from tdelmas January 4, 2024 11:19
@richfab richfab requested a review from josee-sabourin January 4, 2024 14:32
@richfab richfab merged commit 212386e into master Jan 4, 2024
@richfab richfab deleted the clarify-types branch January 4, 2024 15:41
tobsesHub pushed a commit to tobsesHub/gbfs that referenced this pull request Feb 12, 2025
* Improve readability (MobilityData#582)

* Improve readability

* replace < and > with &lt; and &gt; for display.

* all fields have a definition

---------

Co-authored-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Minor rephrasings

* Remove duplicate of Object definition

* Make field hierarchy explicit

* Adds missing array sub-types

* Fix type Array<ID>

* Update fiedl descriptions for Array<ID>

* Maintain field types alphabetical order

---------

Co-authored-by: Tom <1955774+tdelmas@users.noreply.github.com>
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.

4 participants