Skip to content

Commit

Permalink
Use integer instead of number in config JSON schema
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 25, 2020
1 parent b72965f commit 280b42f
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .schemas/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"description": "Indicates whether the request can include user credentials like cookies, HTTP authentication or client side SSL certificates."
},
"max_age": {
"type": "number",
"type": "integer",
"default": 0,
"title": "Maximum Age",
"description": "Indicates how long (in seconds) the results of a preflight request can be cached. The default is 0 which stands for no max age."
Expand Down Expand Up @@ -191,7 +191,7 @@
"code": {
"title": "HTTP Redirect Status Code",
"description": "Defines the HTTP Redirect status code which can bei 301 (Moved Permanently) or 302 (Found).",
"type": "number",
"type": "integer",
"enum": [
301,
302
Expand Down Expand Up @@ -867,13 +867,10 @@
"additionalProperties": false,
"properties": {
"port": {
"type": "number",
"type": "integer",
"default": 4456,
"examples": [4456],
"title": "Port",
"description": "The port to listen on.",
"minimum": 1,
"maximum": 65535
"description": "The port to listen on."
},
"host": {
"type": "string",
Expand All @@ -899,13 +896,10 @@
"additionalProperties": false,
"properties": {
"port": {
"type": "number",
"type": "integer",
"default": 4455,
"examples": [4455],
"title": "Port",
"description": "The port to listen on.",
"minimum": 1,
"maximum": 65535
"description": "The port to listen on."
},
"host": {
"type": "string",
Expand Down

0 comments on commit 280b42f

Please sign in to comment.