Skip to content

Commit

Permalink
https json-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Le Bonniec committed Dec 2, 2019
1 parent e9318be commit 6a38d17
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 74 deletions.
4 changes: 2 additions & 2 deletions packages/schemas/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@
"type": "number"
},
"maxLength": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minLength": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"pattern": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Ouest-France schema",
"main": "schemas.js",
"scripts": {
"vendors:update": "curl https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v2.0/schema.json > vendors/openapi-v2-schema.json && curl http://json-schema.org/draft-04/schema > vendors/json-schema-draft-04.json",
"vendors:update": "curl https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v2.0/schema.json > vendors/openapi-v2-schema.json && curl https://json-schema.org/draft-04/schema > vendors/json-schema-draft-04.json",
"test": "jest",
"test:watch": "jest --watch --notify"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/vendors/json-schema-draft-04.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "http://json-schema.org/draft-04/schema#",
"$id": "https://json-schema.org/draft-04/schema#",
"$schema": "https://json-schema.org/draft-04/schema#",
"description": "Core schema meta-schema",
"definitions": {
Expand Down
70 changes: 35 additions & 35 deletions packages/schemas/vendors/openapi-v2-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -900,66 +900,66 @@
},
"description": {
"$ref":
"http://json-schema.org/draft-04/schema#/properties/description"
"https://json-schema.org/draft-04/schema#/properties/description"
},
"default": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/default"
"$ref": "https://json-schema.org/draft-04/schema#/properties/default"
},
"multipleOf": {
"$ref":
"http://json-schema.org/draft-04/schema#/properties/multipleOf"
"https://json-schema.org/draft-04/schema#/properties/multipleOf"
},
"maximum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/maximum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/maximum"
},
"exclusiveMaximum": {
"$ref":
"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
"https://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
},
"minimum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/minimum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/minimum"
},
"exclusiveMinimum": {
"$ref":
"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
"https://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
},
"maxLength": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minLength": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"pattern": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/pattern"
"$ref": "https://json-schema.org/draft-04/schema#/properties/pattern"
},
"maxItems": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minItems": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"uniqueItems": {
"$ref":
"http://json-schema.org/draft-04/schema#/properties/uniqueItems"
"https://json-schema.org/draft-04/schema#/properties/uniqueItems"
},
"maxProperties": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minProperties": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"required": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/stringArray"
"https://json-schema.org/draft-04/schema#/definitions/stringArray"
},
"enum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/enum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/enum"
},
"additionalProperties": {
"anyOf": [
Expand All @@ -973,7 +973,7 @@
"default": {}
},
"type": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/type"
"$ref": "https://json-schema.org/draft-04/schema#/properties/type"
},
"items": {
"anyOf": [
Expand Down Expand Up @@ -1039,14 +1039,14 @@
},
"description": {
"$ref":
"http://json-schema.org/draft-04/schema#/properties/description"
"https://json-schema.org/draft-04/schema#/properties/description"
},
"default": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/default"
"$ref": "https://json-schema.org/draft-04/schema#/properties/default"
},
"required": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/stringArray"
"https://json-schema.org/draft-04/schema#/definitions/stringArray"
},
"type": {
"type": "string",
Expand Down Expand Up @@ -1438,52 +1438,52 @@
"$ref": "https://json-schema.org/draft-04/schema#/properties/title"
},
"description": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/description"
"$ref": "https://json-schema.org/draft-04/schema#/properties/description"
},
"default": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/default"
"$ref": "https://json-schema.org/draft-04/schema#/properties/default"
},
"multipleOf": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf"
"$ref": "https://json-schema.org/draft-04/schema#/properties/multipleOf"
},
"maximum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/maximum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/maximum"
},
"exclusiveMaximum": {
"$ref":
"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
"https://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
},
"minimum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/minimum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/minimum"
},
"exclusiveMinimum": {
"$ref":
"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
"https://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
},
"maxLength": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minLength": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"pattern": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/pattern"
"$ref": "https://json-schema.org/draft-04/schema#/properties/pattern"
},
"maxItems": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minItems": {
"$ref":
"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"uniqueItems": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems"
"$ref": "https://json-schema.org/draft-04/schema#/properties/uniqueItems"
},
"enum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/enum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/enum"
},
"jsonReference": {
"type": "object",
Expand Down
70 changes: 35 additions & 35 deletions packages/schemas/vendors/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -951,55 +951,55 @@
"$ref": "https://json-schema.org/draft-04/schema#/properties/title"
},
"description": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/description"
"$ref": "https://json-schema.org/draft-04/schema#/properties/description"
},
"default": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/default"
"$ref": "https://json-schema.org/draft-04/schema#/properties/default"
},
"multipleOf": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf"
"$ref": "https://json-schema.org/draft-04/schema#/properties/multipleOf"
},
"maximum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/maximum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/maximum"
},
"exclusiveMaximum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
},
"minimum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/minimum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/minimum"
},
"exclusiveMinimum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
},
"maxLength": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minLength": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"pattern": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/pattern"
"$ref": "https://json-schema.org/draft-04/schema#/properties/pattern"
},
"maxItems": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minItems": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"uniqueItems": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems"
"$ref": "https://json-schema.org/draft-04/schema#/properties/uniqueItems"
},
"maxProperties": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minProperties": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"required": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/stringArray"
},
"enum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/enum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/enum"
},
"additionalProperties": {
"anyOf": [
Expand All @@ -1013,7 +1013,7 @@
"default": {}
},
"type": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/type"
"$ref": "https://json-schema.org/draft-04/schema#/properties/type"
},
"items": {
"anyOf": [
Expand Down Expand Up @@ -1080,13 +1080,13 @@
"$ref": "https://json-schema.org/draft-04/schema#/properties/title"
},
"description": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/description"
"$ref": "https://json-schema.org/draft-04/schema#/properties/description"
},
"default": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/default"
"$ref": "https://json-schema.org/draft-04/schema#/properties/default"
},
"required": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/stringArray"
},
"type": {
"type": "string",
Expand Down Expand Up @@ -1550,46 +1550,46 @@
"$ref": "https://json-schema.org/draft-04/schema#/properties/title"
},
"description": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/description"
"$ref": "https://json-schema.org/draft-04/schema#/properties/description"
},
"default": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/default"
"$ref": "https://json-schema.org/draft-04/schema#/properties/default"
},
"multipleOf": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf"
"$ref": "https://json-schema.org/draft-04/schema#/properties/multipleOf"
},
"maximum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/maximum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/maximum"
},
"exclusiveMaximum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
},
"minimum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/minimum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/minimum"
},
"exclusiveMinimum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
},
"maxLength": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minLength": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"pattern": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/pattern"
"$ref": "https://json-schema.org/draft-04/schema#/properties/pattern"
},
"maxItems": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveInteger"
},
"minItems": {
"$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
"$ref": "https://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},
"uniqueItems": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems"
"$ref": "https://json-schema.org/draft-04/schema#/properties/uniqueItems"
},
"enum": {
"$ref": "http://json-schema.org/draft-04/schema#/properties/enum"
"$ref": "https://json-schema.org/draft-04/schema#/properties/enum"
},
"jsonReference": {
"type": "object",
Expand Down

0 comments on commit 6a38d17

Please sign in to comment.