CODAIT / exchange-metadata-converter

Basic conversion utility for YAML-based metadata descriptors
Apache License 2.0
1 stars 4 forks source link

Support optional properties #24

Closed ptitzler closed 4 years ago

ptitzler commented 4 years ago

Currently all {{...}} placeholders in https://github.com/CODAIT/exchange-metadata-converter/tree/main/templates are considered to be required and therefore each placeholder input file must define them. Annotations would solve this issue. Investigate what it takes to support something like this, where @annotation_key serves as a hint to the processing engine and doesn't invalidate the YAML file because it is specified as a comment.

property: '{{value}}'         #  just a comment
another:
  property2: '{{value2}}'     # @optional and a comment
third_property:               #  comment only
fourth_property:
fifth_property: '{{value6}}'  # @annotation_only