geopython / pygeometa

pygeometa is a Python package to generate metadata for geospatial datasets
https://geopython.github.io/pygeometa
Other
104 stars 44 forks source link

contacts and distributions as array? #219

Open pvgenuchten opened 1 year ago

pvgenuchten commented 1 year ago

The pattern of having contacts and distributions as key-value pairs is common in mcf. However this pattern is problematic in mdme. the build form from json schema is not able to manage this pattern in json-schema:

"contact": {
            "title": "Contacts",
            "patternProperties": {
                "^.*": {
                    "type": "object",

I wonder if there are other scenario's with the same issue (there is for example the PR with multiple contacts having the same role which is used as unique key).

I understand this is a massive breaking change, but just curious to hear your thoughts.

pvgenuchten commented 1 year ago

in this pr i convert from object to array at load and back to object at save.... it works, but less optimal