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

Disallow adding new properties to some objects? #5

Open
jonblower opened this issue Nov 15, 2021 · 1 comment
Open

Disallow adding new properties to some objects? #5

jonblower opened this issue Nov 15, 2021 · 1 comment

Comments

@jonblower
Copy link
Member

Mostly it's OK in JSON to allow additional properties to be added (particularly to allow extra metadata at a high level) but sometimes it wouldn't really make sense to do so (e.g. with a regularly-spaced axis object).

The spec doesn't say anything about this - perhaps it should in places.

@letmaik
Copy link
Member

letmaik commented Feb 4, 2022

The spec has "... MAY have any number of members (name/value pairs)." in a few places:

  • Parameter objects,
  • ParameterGroup objects,
  • CoverageJSON objects (Domain, NdArray, TiledNdArray, Coverage, CoverageCollection).

In other places there's "Custom values MAY be used as detailed in the “Extensions” section." which refers to custom members really.

I agree that it'd be worth to go over this and clean it up.

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

No branches or pull requests

2 participants