zero-rails_openapi 2.0.1 → 2.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 +4 -4
- data/lib/open_api/config.rb +5 -5
- data/lib/open_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 406f69d0bc9ba791d43c9989267f43d1b8d49f50
|
|
4
|
+
data.tar.gz: 81938569b866c04e5c9e61f5dc3feb6b6d523108
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f78ea71f4788e0f89745fd36c265a61a1a6e6bbf6d969e604b6b043b82937253a75fba6f37b8bc33ae616d757c26cecbbd952be48c7778c7cc6d9e407cdd3f60
|
|
7
|
+
data.tar.gz: c3ff2a18f99422385a340068ef38a6e86a6b89979e2bf986a84a88536adc82750b9112a461e56bcb71a075ae59be83d60b64e1c080e7efdc202cf8fff01b6f46
|
data/lib/open_api/config.rb
CHANGED
|
@@ -7,12 +7,12 @@ module OpenApi
|
|
|
7
7
|
module Config
|
|
8
8
|
include ConfigDSL
|
|
9
9
|
|
|
10
|
-
cattr_accessor
|
|
10
|
+
cattr_accessor(:default_run_dry) { false }
|
|
11
11
|
|
|
12
12
|
# [REQUIRED] The location where .json doc file will be output.
|
|
13
|
-
cattr_accessor
|
|
13
|
+
cattr_accessor(:file_output_path) { 'public/open_api' }
|
|
14
14
|
|
|
15
|
-
cattr_accessor
|
|
15
|
+
cattr_accessor(:doc_location) { ['./app/**/*_doc.rb'] }
|
|
16
16
|
|
|
17
17
|
cattr_accessor :rails_routes_file
|
|
18
18
|
|
|
@@ -20,9 +20,9 @@ module OpenApi
|
|
|
20
20
|
|
|
21
21
|
# Everything about OAS3 is on https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.0.md
|
|
22
22
|
# Getting started: https://swagger.io/docs/specification/basic-structure/
|
|
23
|
-
cattr_accessor
|
|
23
|
+
cattr_accessor(:open_api_docs) { { } }
|
|
24
24
|
|
|
25
|
-
cattr_accessor
|
|
25
|
+
cattr_accessor(:file_format) { 'binary' }
|
|
26
26
|
|
|
27
27
|
def self.docs
|
|
28
28
|
open_api_docs
|
data/lib/open_api/version.rb
CHANGED