Skip to content

Conversation

@gouttegd
Copy link
Contributor

This PR adds a recommendation that the keys in the YAML metadata block (in both "embedded" and "external" modes) SHOULD be sorted by case-sensitive alphabetical order.

There is no particular reason for recommending alphabetical order over any other type of order, beyond the fact that sssom-py is already using alphabetical order (probably because that is seemingly the default behaviour of the PyYAML's safe_dump method used by sssom-py). So we just take the order that is de facto in use in the wild and make it the officially recommended order.

  • docs/ have been added/updated if necessary
  • make test has been run locally (no, documentation change only)
  • tests have been added/updated (no, documentation change only)
  • CHANGELOG.md has been updated.

This commit adds a recommendation that the keys in the YAML metadata
block (in both "embedded" and "external" modes) SHOULD be sorted by
case-sensitive alphabetical order.

There is no particular reason for recommending alphabetical order over
any other type of order, beyond the fact that sssom-py is already using
alphabetical order (probably because that is seemingly the default
behaviour of the PyYAML's 'safe_dump' method used by sssom-py). So we
just take the order that is de facto in use in the wild and make it the
officially recommended order.
@gouttegd
Copy link
Contributor Author

Closing since the alternative proposition (#320) has been approved. (In the event someone objects to “spec order“ and makes a case for alphabetical order we can reopen this one.)

@gouttegd gouttegd closed this Sep 20, 2023
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.

1 participant