elasticgraph-support 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8825e2c5d0469e98e6be7f6de6eb9d9779d8db74beae886ef4a81ec52beeb3e9
|
4
|
+
data.tar.gz: 12869c23b1f40c76a7b46c5b2f4a4bc949a65f86d02fd55352dad46c0fa4e6fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b632c88f11738eb683c0714a9a9c5ab5fb14f481bf8cbbe3cc391604ab229239d1a6e1de8efe29cedb255c06fb9eb8cd301aa84758a457a430e7a55caf3fc25
|
7
|
+
data.tar.gz: f76d61a4134fed52bffa316b9a64143a7a0c63414b77942c3da2e22bbbd985aec2511fe58b64ba8276ead1f8dd107cb2a4b6a4ffd40233271ef443f084f060ab
|
@@ -51,8 +51,7 @@ module ElasticGraph
|
|
51
51
|
#
|
52
52
|
# @param overrides [Hash<String, Object>] meta schema overrides
|
53
53
|
def self.load_strict_validator(overrides = {})
|
54
|
-
|
55
|
-
schema = ::JSON.parse(::File.read(::File.expand_path("../json_schema_draft_7_schema.json", __FILE__)))
|
54
|
+
schema = ::JSONSchemer::Draft7::SCHEMA
|
56
55
|
schema = ::ElasticGraph::Support::HashUtil.deep_merge(schema, overrides) unless overrides.empty?
|
57
56
|
|
58
57
|
# The meta schema allows additionalProperties in nearly every place. While a JSON schema definition
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticgraph-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myron Marston
|
@@ -75,7 +75,6 @@ files:
|
|
75
75
|
- lib/elastic_graph/support/from_yaml_file.rb
|
76
76
|
- lib/elastic_graph/support/graphql_formatter.rb
|
77
77
|
- lib/elastic_graph/support/hash_util.rb
|
78
|
-
- lib/elastic_graph/support/json_schema/json_schema_draft_7_schema.json
|
79
78
|
- lib/elastic_graph/support/json_schema/meta_schema_validator.rb
|
80
79
|
- lib/elastic_graph/support/json_schema/validator.rb
|
81
80
|
- lib/elastic_graph/support/json_schema/validator_factory.rb
|
@@ -92,10 +91,10 @@ licenses:
|
|
92
91
|
- MIT
|
93
92
|
metadata:
|
94
93
|
bug_tracker_uri: https://github.com/block/elasticgraph/issues
|
95
|
-
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v1.0.
|
96
|
-
documentation_uri: https://block.github.io/elasticgraph/api-docs/v1.0.
|
94
|
+
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v1.0.2
|
95
|
+
documentation_uri: https://block.github.io/elasticgraph/api-docs/v1.0.2/
|
97
96
|
homepage_uri: https://block.github.io/elasticgraph/
|
98
|
-
source_code_uri: https://github.com/block/elasticgraph/tree/v1.0.
|
97
|
+
source_code_uri: https://github.com/block/elasticgraph/tree/v1.0.2/elasticgraph-support
|
99
98
|
gem_category: core
|
100
99
|
rdoc_options: []
|
101
100
|
require_paths:
|
@@ -1,172 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
-
"$id": "http://json-schema.org/draft-07/schema#",
|
4
|
-
"title": "Core schema meta-schema",
|
5
|
-
"definitions": {
|
6
|
-
"schemaArray": {
|
7
|
-
"type": "array",
|
8
|
-
"minItems": 1,
|
9
|
-
"items": { "$ref": "#" }
|
10
|
-
},
|
11
|
-
"nonNegativeInteger": {
|
12
|
-
"type": "integer",
|
13
|
-
"minimum": 0
|
14
|
-
},
|
15
|
-
"nonNegativeIntegerDefault0": {
|
16
|
-
"allOf": [
|
17
|
-
{ "$ref": "#/definitions/nonNegativeInteger" },
|
18
|
-
{ "default": 0 }
|
19
|
-
]
|
20
|
-
},
|
21
|
-
"simpleTypes": {
|
22
|
-
"enum": [
|
23
|
-
"array",
|
24
|
-
"boolean",
|
25
|
-
"integer",
|
26
|
-
"null",
|
27
|
-
"number",
|
28
|
-
"object",
|
29
|
-
"string"
|
30
|
-
]
|
31
|
-
},
|
32
|
-
"stringArray": {
|
33
|
-
"type": "array",
|
34
|
-
"items": { "type": "string" },
|
35
|
-
"uniqueItems": true,
|
36
|
-
"default": []
|
37
|
-
}
|
38
|
-
},
|
39
|
-
"type": ["object", "boolean"],
|
40
|
-
"properties": {
|
41
|
-
"$id": {
|
42
|
-
"type": "string",
|
43
|
-
"format": "uri-reference"
|
44
|
-
},
|
45
|
-
"$schema": {
|
46
|
-
"type": "string",
|
47
|
-
"format": "uri"
|
48
|
-
},
|
49
|
-
"$ref": {
|
50
|
-
"type": "string",
|
51
|
-
"format": "uri-reference"
|
52
|
-
},
|
53
|
-
"$comment": {
|
54
|
-
"type": "string"
|
55
|
-
},
|
56
|
-
"title": {
|
57
|
-
"type": "string"
|
58
|
-
},
|
59
|
-
"description": {
|
60
|
-
"type": "string"
|
61
|
-
},
|
62
|
-
"default": true,
|
63
|
-
"readOnly": {
|
64
|
-
"type": "boolean",
|
65
|
-
"default": false
|
66
|
-
},
|
67
|
-
"writeOnly": {
|
68
|
-
"type": "boolean",
|
69
|
-
"default": false
|
70
|
-
},
|
71
|
-
"examples": {
|
72
|
-
"type": "array",
|
73
|
-
"items": true
|
74
|
-
},
|
75
|
-
"multipleOf": {
|
76
|
-
"type": "number",
|
77
|
-
"exclusiveMinimum": 0
|
78
|
-
},
|
79
|
-
"maximum": {
|
80
|
-
"type": "number"
|
81
|
-
},
|
82
|
-
"exclusiveMaximum": {
|
83
|
-
"type": "number"
|
84
|
-
},
|
85
|
-
"minimum": {
|
86
|
-
"type": "number"
|
87
|
-
},
|
88
|
-
"exclusiveMinimum": {
|
89
|
-
"type": "number"
|
90
|
-
},
|
91
|
-
"maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
|
92
|
-
"minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
93
|
-
"pattern": {
|
94
|
-
"type": "string",
|
95
|
-
"format": "regex"
|
96
|
-
},
|
97
|
-
"additionalItems": { "$ref": "#" },
|
98
|
-
"items": {
|
99
|
-
"anyOf": [
|
100
|
-
{ "$ref": "#" },
|
101
|
-
{ "$ref": "#/definitions/schemaArray" }
|
102
|
-
],
|
103
|
-
"default": true
|
104
|
-
},
|
105
|
-
"maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
|
106
|
-
"minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
107
|
-
"uniqueItems": {
|
108
|
-
"type": "boolean",
|
109
|
-
"default": false
|
110
|
-
},
|
111
|
-
"contains": { "$ref": "#" },
|
112
|
-
"maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
|
113
|
-
"minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
114
|
-
"required": { "$ref": "#/definitions/stringArray" },
|
115
|
-
"additionalProperties": { "$ref": "#" },
|
116
|
-
"definitions": {
|
117
|
-
"type": "object",
|
118
|
-
"additionalProperties": { "$ref": "#" },
|
119
|
-
"default": {}
|
120
|
-
},
|
121
|
-
"properties": {
|
122
|
-
"type": "object",
|
123
|
-
"additionalProperties": { "$ref": "#" },
|
124
|
-
"default": {}
|
125
|
-
},
|
126
|
-
"patternProperties": {
|
127
|
-
"type": "object",
|
128
|
-
"additionalProperties": { "$ref": "#" },
|
129
|
-
"propertyNames": { "format": "regex" },
|
130
|
-
"default": {}
|
131
|
-
},
|
132
|
-
"dependencies": {
|
133
|
-
"type": "object",
|
134
|
-
"additionalProperties": {
|
135
|
-
"anyOf": [
|
136
|
-
{ "$ref": "#" },
|
137
|
-
{ "$ref": "#/definitions/stringArray" }
|
138
|
-
]
|
139
|
-
}
|
140
|
-
},
|
141
|
-
"propertyNames": { "$ref": "#" },
|
142
|
-
"const": true,
|
143
|
-
"enum": {
|
144
|
-
"type": "array",
|
145
|
-
"items": true,
|
146
|
-
"minItems": 1,
|
147
|
-
"uniqueItems": true
|
148
|
-
},
|
149
|
-
"type": {
|
150
|
-
"anyOf": [
|
151
|
-
{ "$ref": "#/definitions/simpleTypes" },
|
152
|
-
{
|
153
|
-
"type": "array",
|
154
|
-
"items": { "$ref": "#/definitions/simpleTypes" },
|
155
|
-
"minItems": 1,
|
156
|
-
"uniqueItems": true
|
157
|
-
}
|
158
|
-
]
|
159
|
-
},
|
160
|
-
"format": { "type": "string" },
|
161
|
-
"contentMediaType": { "type": "string" },
|
162
|
-
"contentEncoding": { "type": "string" },
|
163
|
-
"if": { "$ref": "#" },
|
164
|
-
"then": { "$ref": "#" },
|
165
|
-
"else": { "$ref": "#" },
|
166
|
-
"allOf": { "$ref": "#/definitions/schemaArray" },
|
167
|
-
"anyOf": { "$ref": "#/definitions/schemaArray" },
|
168
|
-
"oneOf": { "$ref": "#/definitions/schemaArray" },
|
169
|
-
"not": { "$ref": "#" }
|
170
|
-
},
|
171
|
-
"default": true
|
172
|
-
}
|