OpenEnergyPlatform / oemetadata

Repository for the Open Energy Family metadata. Contains metadata templates, examples and schemas. For metadata conversion see https://github.com/OpenEnergyPlatform/omi
https://openenergyplatform.github.io/oemetadata/
MIT License
21 stars 3 forks source link

Use more explicit types in the json schema instead of just "string". #146

Open jh-RLI opened 2 months ago

jh-RLI commented 2 months ago

Description of the issue

The JSON schema spec allows some build in additional types.

Ideas of solution

Since we are currently doing a rewrite of omi checking sting types against python types is not how we want to do this anymore. Using the tooling around json schema is a better solution.

We need to update the type field for each element in the json schema if the value can be described as something else than "string".

Workflow checklist

jh-RLI commented 2 months ago

FYI @henhuy @christian-rli