Gen3SchemaDev 2.3.5__tar.gz → 2.3.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/PKG-INFO +1 -1
  2. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/pyproject.toml +1 -1
  3. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/converter.py +7 -8
  4. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/LICENSE +0 -0
  5. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/README.md +0 -0
  6. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/__init__.py +0 -0
  7. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/cli.py +0 -0
  8. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/ddvis.py +0 -0
  9. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/__init__.py +0 -0
  10. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/gen3_template.py +0 -0
  11. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/input_schema.py +0 -0
  12. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/schema_templates/_definitions.yaml +0 -0
  13. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/schema_templates/_settings.yaml +0 -0
  14. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/schema_templates/_terms.yaml +0 -0
  15. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/schema_templates/core_metadata_collection.yaml +0 -0
  16. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/schema_templates/gen3_metaschema.yml +0 -0
  17. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/schema_templates/program.yaml +0 -0
  18. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/schema/schema_templates/project.yaml +0 -0
  19. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/utils.py +0 -0
  20. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/validators/input_validator.py +0 -0
  21. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/validators/metaschema_validator.py +0 -0
  22. {gen3schemadev-2.3.5 → gen3schemadev-2.3.6}/src/gen3schemadev/validators/rule_validator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Gen3SchemaDev
3
- Version: 2.3.5
3
+ Version: 2.3.6
4
4
  Summary: Tool for data modelling in Gen3
5
5
  License: Apache 2.0
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "Gen3SchemaDev"
3
- version = "2.3.5"
3
+ version = "2.3.6"
4
4
  description = "Tool for data modelling in Gen3"
5
5
  authors = [
6
6
  {name = "JoshuaHarris391",email = "harjo391@gmail.com"}
@@ -632,21 +632,20 @@ def construct_props(node_name: str, data: DataSourceProtocol) -> dict:
632
632
 
633
633
  # if it's an Enum, add the enum values
634
634
  if category == "data_file":
635
- props_dict['core_metadata_collections'] = {"$ref": "_definitions.yaml#/to_one"}
636
635
  props_dict['$ref'] = "_definitions.yaml#/data_file_properties"
637
-
638
- props_dict['data_category'] = {
636
+ props_dict.setdefault('core_metadata_collections', {"$ref": "_definitions.yaml#/to_one"})
637
+ props_dict.setdefault('data_category', {
639
638
  "description": "Broad categorization of the contents of the data file.",
640
639
  "enum": ['data_category_1', 'data_category_2', 'data_category_3']
641
- }
642
- props_dict['data_format'] = {
640
+ })
641
+ props_dict.setdefault('data_format', {
643
642
  "description": "The format of the data in this data file",
644
643
  "enum": ['data_format_1', 'data_format_2', 'data_format_3']
645
- }
646
- props_dict['data_type'] = {
644
+ })
645
+ props_dict.setdefault('data_type', {
647
646
  "description": "The type of data in this data file",
648
647
  "enum": ['data_type_1', 'data_type_2', 'data_type_3']
649
- }
648
+ })
650
649
 
651
650
  return props_dict
652
651
 
File without changes
File without changes