Closed HadleyKing closed 5 years ago
The base_type and schema define step_number
as an integer.
Does required/regex refer to prerequisite
or the access
and address
properties?
The base_type and schema define prerequisite
as optional (i.e. it is absent in the schemas required
array).
The base_type and schema reference a uri
definition:
The uri
definition includes regex validation and requires the address
field:
The base_type and schema reference a uri
definition.
- [ ] pipeline_steps.prerequisite.uri.access, pipeline_steps.prerequisite.uri.address regex required
- [ ] pipeline_steps.input_list,pipeline_steps.output_list regex for url values of these arrays
As JSON Schema specifically defines uri
and other resource identifier types, this should be renamed.
Suggestions?
@HadleyKing I am not aware of any potential for a name conflict between a BCO file and the JSON Schema that describes its constraints.
In regards to the BCO, I can imagine replacing address
with uri
to be clear it is not a geographic location. The following example is for the sake of discussion; it knowingly deviates from the schema:
"prerequisites": [{
"filename": "<STRING>",
"uri": "<URI>",
"sha256": "<SHA256>",
"date_accessed": "<ISO8601>"
}]
Would it make sense to replace this definition: https://github.com/biocompute-objects/BCO_Specification/blob/a7633cc849c8a56335ee23a37c940a9bd2581367/schemas/biocomputeobject.json#L33-L55
with something like the following?
"uri": {
"type": "object",
"additionalProperties": false,
"required": [
"uri"
],
"properties": {
"filename":{
"type": "string"
},
"uri": {
"type": "string",
"format": "uri"
},
"access_time": {
"type": "string",
"format": "date-time"
},
"sha1_chksum": {
"type": "string",
"description": "Sha256 hash function that produces a message digest",
"pattern": "[A-Za-z0-9]+"
}
}
}
@HadleyKing the definition looks valid. Sha256 will need to be removed from the description.
Issues from description_domain.md