Skip to content

Commit

Permalink
Add length validation to arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAxthelm committed Jan 31, 2024
1 parent 2c94503 commit 5322ac7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inst/extdata/schema/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"portfolios": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
Expand All @@ -51,7 +52,7 @@
"output_rows": {
"description": "Number of rows in output file.",
"type": "integer",
"minimum": 0
"exclusiveMinimum": 0
},
"portfolio_name": {
"description": "Name of portfolio defined in portfolio file.",
Expand All @@ -72,13 +73,15 @@
"errors": {
"description": "List of errors encountered during processing.",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"warnings": {
"description": "List of warnings encountered during processing.",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
Expand Down

0 comments on commit 5322ac7

Please sign in to comment.