Skip to content

JSON example too verbose #1

@joergklausen

Description

@joergklausen

@tomkralidis : Re https://github.com/wmo-im/wmdr2-devt/blob/main/resources/oarec-compat/0-20008-0-THE.json

It is pretty heavy on future users to have to create and submit something like

        "program": {
            "id": "GALION",
            "title": "GALION",
            "description": "GAW Aerosol Lidar Observation Network",
            "url": "http://codes.wmo.int/wmdr/ProgramAffiliation/GALION"
        },

when the only relevant piece of information is the url. This is an actionable link, and the id, title, description can be obtained there. They are called notation, label, description.

I propose to make this lighter, i.e.,

    "programAffiliation": [
      {
        "href": "http://codes.wmo.int/wmdr/ProgramAffiliation/GAWregional"
      }

We can decide on the names "program" vs "programAffiliation", and "url" vs "href" (no strong feelings). An application using these codes and potentially generating such json will cache the codelists and can potentially generate the additional attributes id, title, description.

Objections?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions