diff --git a/VERSIONS.json b/VERSIONS.json index cd8f681..58a828e 100644 --- a/VERSIONS.json +++ b/VERSIONS.json @@ -1,4 +1,4 @@ { "slmd":"1.0.0", - "vlmd":"0.3.1" + "vlmd":"0.3.2" } \ No newline at end of file diff --git a/variable-level-metadata-schema/build.py b/variable-level-metadata-schema/build.py index b217dc6..d68d0a5 100644 --- a/variable-level-metadata-schema/build.py +++ b/variable-level-metadata-schema/build.py @@ -139,6 +139,13 @@ def flatten_properties(properties, parentkey="", sep=".",itemsep="\[\d+\]"): return properties_flattened def flatten_schema(schema): + """ + Flatten a schema of type object with properties. + + If a regular expression indicating a list index exists, puts this + under `patternProperties` + + """ schema_flattened = dict(schema) if "properties" in schema: properties = schema_flattened.pop("properties") diff --git a/variable-level-metadata-schema/docs/csvtemplate-fields.md b/variable-level-metadata-schema/docs/csvtemplate-fields.md index a38c319..04a5c99 100644 --- a/variable-level-metadata-schema/docs/csvtemplate-fields.md +++ b/variable-level-metadata-schema/docs/csvtemplate-fields.md @@ -1,6 +1,6 @@ # HEAL Variable Level Metadata Fields -_version 0.3.1_ +_version 0.3.2_