Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
B3rse committed Dec 5, 2024
1 parent 8b54a7d commit 7199e39
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pipeline_utils/lib/yaml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@ def to_json(
if getattr(self, self.LICENSE_SCHEMA, None):
ref_json[self.LICENSE_SCHEMA] = self.license

# code
if getattr(self, self.CODE_SCHEMA, None):
ref_json[self.CODE_SCHEMA] = self.code

return ref_json


Expand Down
4 changes: 4 additions & 0 deletions pipeline_utils/schemas/yaml_reference_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
'license': {
schema.DESCRIPTION: 'License of the ReferenceFile',
schema.TYPE: schema.STRING
},
'code': {
schema.DESCRIPTION: 'Code for the ReferenceFile',
schema.TYPE: schema.STRING
}
},
schema.REQUIRED: ['name', 'description', 'format', 'category', 'type', 'version']
Expand Down
4 changes: 4 additions & 0 deletions pipeline_utils/schemas/yaml_software.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
schema.ITEMS: {
schema.TYPE: schema.STRING
}
},
'code': {
schema.DESCRIPTION: 'Code for the Software',
schema.TYPE: schema.STRING
}
},
schema.REQUIRED: ['name', 'category'],
Expand Down

0 comments on commit 7199e39

Please sign in to comment.