Skip to content

Commit a7e45c9

Browse files
committed
Rename 'positiveInteger' to 'nonNegativeInteger'
An integer with a minumum value of 0 is a non-negative integer.
1 parent 917341f commit a7e45c9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

schema.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"minItems": 1,
99
"items": { "$ref": "#" }
1010
},
11-
"positiveInteger": {
11+
"nonNegativeInteger": {
1212
"type": "integer",
1313
"minimum": 0
1414
},
15-
"positiveIntegerDefault0": {
15+
"nonNegativeIntegerDefault0": {
1616
"allOf": [
17-
{ "$ref": "#/definitions/positiveInteger" },
17+
{ "$ref": "#/definitions/nonNegativeInteger" },
1818
{ "default": 0 }
1919
]
2020
},
@@ -73,8 +73,8 @@
7373
"exclusiveMinimum": {
7474
"type": "number"
7575
},
76-
"maxLength": { "$ref": "#/definitions/positiveInteger" },
77-
"minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },
76+
"maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
77+
"minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
7878
"pattern": {
7979
"type": "string",
8080
"format": "regex"
@@ -87,15 +87,15 @@
8787
],
8888
"default": {}
8989
},
90-
"maxItems": { "$ref": "#/definitions/positiveInteger" },
91-
"minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },
90+
"maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
91+
"minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
9292
"uniqueItems": {
9393
"type": "boolean",
9494
"default": false
9595
},
9696
"contains": { "$ref": "#" },
97-
"maxProperties": { "$ref": "#/definitions/positiveInteger" },
98-
"minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
97+
"maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
98+
"minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
9999
"required": { "$ref": "#/definitions/stringArray" },
100100
"additionalProperties": { "$ref": "#" },
101101
"definitions": {

0 commit comments

Comments
 (0)