Skip to content

Commit

Permalink
Updting schemas with array
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-echeverria committed Nov 1, 2023
1 parent 92d4b4b commit c59362b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
{
"$defs": {
"ArrayValueModel": {
"description": "The model implementation for MLTE array values.",
"properties": {
"value_type": {
"const": "array",
"title": "Value Type"
},
"data": {
"items": {},
"title": "Data",
"type": "array"
}
},
"required": [
"value_type",
"data"
],
"title": "ArrayValueModel",
"type": "object"
},
"EvidenceMetadata": {
"description": "A simple wrapper for evidence metadata.",
"properties": {
Expand Down Expand Up @@ -133,6 +153,7 @@
"value": {
"discriminator": {
"mapping": {
"array": "#/$defs/ArrayValueModel",
"image": "#/$defs/ImageValueModel",
"integer": "#/$defs/IntegerValueModel",
"opaque": "#/$defs/OpaqueValueModel",
Expand All @@ -152,6 +173,9 @@
},
{
"$ref": "#/$defs/ImageValueModel"
},
{
"$ref": "#/$defs/ArrayValueModel"
}
],
"title": "Value"
Expand Down
24 changes: 24 additions & 0 deletions mlte/schema/artifact/value/v0.0.1/schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
{
"$defs": {
"ArrayValueModel": {
"description": "The model implementation for MLTE array values.",
"properties": {
"value_type": {
"const": "array",
"title": "Value Type"
},
"data": {
"items": {},
"title": "Data",
"type": "array"
}
},
"required": [
"value_type",
"data"
],
"title": "ArrayValueModel",
"type": "object"
},
"EvidenceMetadata": {
"description": "A simple wrapper for evidence metadata.",
"properties": {
Expand Down Expand Up @@ -133,6 +153,7 @@
"value": {
"discriminator": {
"mapping": {
"array": "#/$defs/ArrayValueModel",
"image": "#/$defs/ImageValueModel",
"integer": "#/$defs/IntegerValueModel",
"opaque": "#/$defs/OpaqueValueModel",
Expand All @@ -152,6 +173,9 @@
},
{
"$ref": "#/$defs/ImageValueModel"
},
{
"$ref": "#/$defs/ArrayValueModel"
}
],
"title": "Value"
Expand Down

0 comments on commit c59362b

Please sign in to comment.