Skip to content

additionalProperties=false #9

@crotwell

Description

@crotwell

StationJSON has lots of
additionalProperties=false
in many objects. But StationXML has lots of
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
to allow other elements.

For example, BaseNodeType in StationXML (and hence Network, Station and Channel) all allow additional elements and attributes. But Network, Station and Channel all have additionalProperties=false in StationJSON to deny additions.

I am not sure what the right answer is, but am thinking it would be useful to lay out a rationalization for why expansion of the objects is permitted or denied. In the absence of a good reason to diverge, I guess I would lean toward at least StationXML and StationJSON being compatible, but that still doesn't answer whether to be permissive or restrictive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions