oas_parser 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/oas_parser/parameter.rb +4 -0
- data/lib/oas_parser/property.rb +2 -1
- data/lib/oas_parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 595ef67c6f390240ee6a98aac6bf63c2b954df09
|
4
|
+
data.tar.gz: 11d86af03188e0bc04ff6b1f1bbe6dd4aa90243a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f0aad769f5924b21a6784cfe9f117a1308da56c3d4b7fdf95c1b818d4c26d15e9af7f040132fb1a9cafd4f0016e07847be271436c071021b170d2df7af7326e
|
7
|
+
data.tar.gz: a0eac06844d4d403e16005f088c1d71154cf48a8393537eb85c6aeff2331b29cab2cd93029fbf16c300b2015759e1c7fd875fa316d9a51fcb0ec8aefc1b49b83
|
data/.gitignore
CHANGED
data/lib/oas_parser/parameter.rb
CHANGED
data/lib/oas_parser/property.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module OasParser
|
2
2
|
class Property
|
3
3
|
include OasParser::RawAccessor
|
4
|
-
raw_keys :name, :description, :type, :enum, :minimum, :maximum,
|
4
|
+
raw_keys :name, :description, :type, :format, :enum, :minimum, :maximum,
|
5
5
|
:example, :default, :items
|
6
6
|
|
7
7
|
attr_accessor :owner, :name, :schema, :raw
|
@@ -14,6 +14,7 @@ module OasParser
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def required
|
17
|
+
return true if raw['required']
|
17
18
|
return false unless schema['required']
|
18
19
|
schema['required'].include? name
|
19
20
|
end
|
data/lib/oas_parser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oas_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Butler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|