Skip to content
Snippets Groups Projects
Commit 8af77d53 authored by Alvaro Cabrera's avatar Alvaro Cabrera
Browse files

Set integer as numeric base-type

parent a812952f
Branches
Tags
No related merge requests found
......@@ -24,7 +24,7 @@
"type": "object",
"properties": {
"chanceNumber": {
"type": "number",
"type": "integer",
"chance": "natural"
},
"fakerNumber": {
......
......@@ -5,7 +5,7 @@
{
"description": "should handle array of types",
"schema": {
"type": ["string", "number"]
"type": ["string", "integer"]
},
"valid": true
},
......@@ -35,7 +35,7 @@
"schema": {
"anyOf": [
{
"type": "number"
"type": "integer"
},
{
"type": "array"
......
......@@ -7,8 +7,8 @@
"schema": {
"id": "#",
"definitions": {
"number": {
"type": "number"
"integer": {
"type": "integer"
},
"positive": {
"minimum": 0,
......@@ -18,7 +18,7 @@
"type": "object",
"properties": {
"weakNumber": {
"$ref": "#/definitions/number"
"$ref": "#/definitions/integer"
},
"multipleOf5": {
"allOf": [
......@@ -26,7 +26,7 @@
"$ref": "#/definitions/positive"
},
{
"$ref": "#/definitions/number"
"$ref": "#/definitions/integer"
},
{
"multipleOf": 5
......
......@@ -5,7 +5,7 @@
{
"description": "should handle minimum",
"schema": {
"type": "number",
"type": "integer",
"minimum": 10
},
"valid": true
......@@ -13,7 +13,7 @@
{
"description": "should handle maximum",
"schema": {
"type": "number",
"type": "integer",
"minimum": 20,
"maximum": 30
},
......@@ -22,7 +22,7 @@
{
"description": "should handle multipleOf",
"schema": {
"type": "number",
"type": "integer",
"minimum": 40,
"maximum": 50,
"multipleOf": 6
......@@ -32,7 +32,7 @@
{
"description": "should handle exclusiveMinimum",
"schema": {
"type": "number",
"type": "integer",
"minimum": 60,
"maximum": 70,
"multipleOf": 7,
......@@ -43,7 +43,7 @@
{
"description": "should handle exclusiveMaximum",
"schema": {
"type": "number",
"type": "integer",
"minimum": 80,
"maximum": 90,
"multipleOf": 8,
......@@ -58,7 +58,7 @@
"type": "object",
"properties": {
"test": {
"type": "number",
"type": "integer",
"minimum": []
}
}
......@@ -71,7 +71,7 @@
"type": "object",
"properties": {
"test": {
"type": "number",
"type": "integer",
"maximum": []
}
}
......@@ -84,7 +84,7 @@
"type": "object",
"properties": {
"test": {
"type": "number",
"type": "integer",
"minimum": 100,
"maximum": 50
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment