committee 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/committee/drivers/open_api_2.rb +1 -1
- data/test/drivers/open_api_2_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b9f998d8056dd74bde5f8c3f522dc156d37af573a96ed089abe3d8a9e99c5d5
|
4
|
+
data.tar.gz: 70c8fb47979080bddcb70f7d736a82d7739cdbe89945303bb06767c8dcce6949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aa59b2147ab36885982da4da3e7b0cc20e70e4d9b6bd7b687a10cdbd1e1192a7ba58e0d160fc9ca11d5da646f1e0469a28859505fb48c37497da30f6d9cfb82
|
7
|
+
data.tar.gz: 6111d776b668b12b702c910655c901e5743e10adc3d4873b0f26b030b67b1d7a602cc2e141f037ea0729f5f73ac7e7a120794d715616330987afffa0693b7812
|
@@ -177,7 +177,7 @@ module Committee::Drivers
|
|
177
177
|
|
178
178
|
# validation: string
|
179
179
|
param_schema.format = param_data["format"] unless param_data["format"].nil?
|
180
|
-
param_schema.pattern = param_data["pattern"] unless param_data["pattern"].nil?
|
180
|
+
param_schema.pattern = Regexp.new(param_data["pattern"]) unless param_data["pattern"].nil?
|
181
181
|
param_schema.min_length = param_data["minLength"] unless param_data["minLength"].nil?
|
182
182
|
param_schema.max_length = param_data["maxLength"] unless param_data["maxLength"].nil?
|
183
183
|
|
@@ -307,7 +307,7 @@ describe Committee::Drivers::OpenAPI2::ParameterSchemaBuilder do
|
|
307
307
|
|
308
308
|
assert_nil schema_data
|
309
309
|
assert_equal "password", schema.properties["password"].format
|
310
|
-
assert_equal "[a-zA-Z0-9]+", schema.properties["password"].pattern
|
310
|
+
assert_equal Regexp.new("[a-zA-Z0-9]+"), schema.properties["password"].pattern
|
311
311
|
assert_equal 6, schema.properties["password"].min_length
|
312
312
|
assert_equal 30, schema.properties["password"].max_length
|
313
313
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: committee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandur
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-01-
|
12
|
+
date: 2019-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_schema
|