elasticgraph-json_schema 0.19.1.1 → 0.19.2.1
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: 10d63e4b73df2881f6d10b3336c71cb3088d4605455ae9912d3508003802ec36
|
4
|
+
data.tar.gz: 1566b16304a032a5f09353b9ff95ffc14f59a1fd61ff18061b8975c221a0911c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e7837c6c520fb53000702dbbc6430820e254892c86fbef403a6276cf44efaf17f09e395560aff1d617d4f5fe57711cf699233889005f4c516e9d5ea920488f5
|
7
|
+
data.tar.gz: 0f0d008c79b4da52c15fe72f63c91f8f86f6f361d7e9059851b3c4430325e1412f7ca9027dfcdbf8f39607a42776e38ac5dd0f0b81e255f4d3dd0508e9754fd2
|
data/LICENSE.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2024 Block, Inc.
|
1
|
+
# Copyright 2024 - 2025 Block, Inc.
|
2
2
|
#
|
3
3
|
# Use of this source code is governed by an MIT-style
|
4
4
|
# license that can be found in the LICENSE file or at
|
@@ -24,12 +24,12 @@ module ElasticGraph
|
|
24
24
|
@root_schema = ::JSONSchemer.schema(
|
25
25
|
schema,
|
26
26
|
meta_schema: schema.fetch("$schema"),
|
27
|
-
# Here we opt to have regular expressions resolved using an
|
27
|
+
# Here we opt to have regular expressions resolved using an ecma-compatible resolver, instead of Ruby's.
|
28
28
|
#
|
29
29
|
# We do this because regexp patterns in our JSON schema are intended to be used by JSON schema libraries
|
30
30
|
# in many languages, not just in Ruby, and we want to support the widest compatibility. For example,
|
31
31
|
# Ruby requires that we use `\A` and `\z` to anchor the start and end of the string (`^` and `$` anchor the
|
32
|
-
# start and end of a line instead), where as
|
32
|
+
# start and end of a line instead), where as ecma regexes treat `^` and `$` as the start and end of the string.
|
33
33
|
# For a pattern to be usable by non-Ruby publishers, we need to use `^/`$` for our start/end anchors, and we
|
34
34
|
# want our validator to treat it the same way here.
|
35
35
|
#
|
@@ -94,6 +94,7 @@ module ElasticGraph
|
|
94
94
|
|
95
95
|
allowed_extra_props.each_with_object(object["properties"]) do |prop_name, props|
|
96
96
|
# @type var empty_hash: ::Hash[::String, untyped]
|
97
|
+
# @type var props: untyped
|
97
98
|
empty_hash = {}
|
98
99
|
props[prop_name] ||= empty_hash
|
99
100
|
end
|
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticgraph-json_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myron Marston
|
8
8
|
- Ben VandenBos
|
9
9
|
- Block Engineering
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2025-
|
12
|
+
date: 2025-04-24 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: elasticgraph-support
|
@@ -18,14 +17,14 @@ dependencies:
|
|
18
17
|
requirements:
|
19
18
|
- - '='
|
20
19
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.19.
|
20
|
+
version: 0.19.2.1
|
22
21
|
type: :runtime
|
23
22
|
prerelease: false
|
24
23
|
version_requirements: !ruby/object:Gem::Requirement
|
25
24
|
requirements:
|
26
25
|
- - '='
|
27
26
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.19.
|
27
|
+
version: 0.19.2.1
|
29
28
|
- !ruby/object:Gem::Dependency
|
30
29
|
name: json_schemer
|
31
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -40,7 +39,6 @@ dependencies:
|
|
40
39
|
- - "~>"
|
41
40
|
- !ruby/object:Gem::Version
|
42
41
|
version: '2.4'
|
43
|
-
description:
|
44
42
|
email:
|
45
43
|
- myron@squareup.com
|
46
44
|
executables: []
|
@@ -58,12 +56,11 @@ licenses:
|
|
58
56
|
- MIT
|
59
57
|
metadata:
|
60
58
|
bug_tracker_uri: https://github.com/block/elasticgraph/issues
|
61
|
-
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.
|
62
|
-
documentation_uri: https://block.github.io/elasticgraph/docs/
|
59
|
+
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.2.1
|
60
|
+
documentation_uri: https://block.github.io/elasticgraph/api-docs/v0.19.2.1/
|
63
61
|
homepage_uri: https://block.github.io/elasticgraph/
|
64
|
-
source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.
|
62
|
+
source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.2.1/elasticgraph-json_schema
|
65
63
|
gem_category: core
|
66
|
-
post_install_message:
|
67
64
|
rdoc_options: []
|
68
65
|
require_paths:
|
69
66
|
- lib
|
@@ -81,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
78
|
- !ruby/object:Gem::Version
|
82
79
|
version: '0'
|
83
80
|
requirements: []
|
84
|
-
rubygems_version: 3.
|
85
|
-
signing_key:
|
81
|
+
rubygems_version: 3.6.2
|
86
82
|
specification_version: 4
|
87
83
|
summary: ElasticGraph gem that provides JSON Schema validation.
|
88
84
|
test_files: []
|