Skip to content

Parameter structure not to spec #24

@letmaik

Description

@letmaik

The parameter structure that is generated from pycovjson-convert is:

    {
      "symbol": {
        "value": "Land Cover Class",
        "type": ""
      },
      "description": null,
      "observedProperty": {
        "id": null,
        "label": {
          "en": "MELODIES Land Cover"
        }
      },
      "type": "Parameter",
      "unit": {
        "label": {
          "en": "Land Cover Class"
        }
      }
    }

There are several issues here:

  • "symbol" can only be defined within the "unit" property, so the nesting is wrong.
  • The value of "type" within "symbol" cannot be an empty string. If the unit scheme is not known as in here, then the symbol must be a plain string, not an object.
  • null is not allowed for missing values (here "description" and "id"). The property has to be left out completely in that case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions