rspec_api_documentation-open_api 0.2.8 → 0.3
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: 3c66175610afed0eca49004505d516f26a383e7eadcb1c3bf7c8f403d618e7f4
|
4
|
+
data.tar.gz: ab0bce8839245d60d7932566f125d5dfecd63a2640dcf2ffcc32ce36f8152524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 176d6c576ab36496d54fe59fbb2ab0abe237e16c5dad8ee5fc9b3d1b04585c182c239854b8c2ecadd6b45d0aef0d61eb96ce5a9cb0b34308ce6d096a1054b853
|
7
|
+
data.tar.gz: 2c08f46097a4c991d053f8981294654678c07c067d33e5d77db12be557cb7d253e64634a4217d92cb01f273d4122b8f299c432f8d5a55479be8e5b6382bc6db1
|
@@ -4,7 +4,7 @@ require "rspec_api_documentation/open_api/version"
|
|
4
4
|
module RspecApiDocumentation
|
5
5
|
module Writers
|
6
6
|
extend ActiveSupport::Autoload
|
7
|
-
RspecApiDocumentation::Configuration.add_setting :open_api, default:
|
7
|
+
RspecApiDocumentation::Configuration.add_setting :open_api, default: nil
|
8
8
|
|
9
9
|
autoload :OpenApiWriter
|
10
10
|
autoload :OpenApiJsonWriter
|
@@ -260,26 +260,26 @@ module RspecApiDocumentation
|
|
260
260
|
end
|
261
261
|
|
262
262
|
def defined_configs
|
263
|
-
|
263
|
+
configuration.open_api
|
264
264
|
end
|
265
265
|
|
266
266
|
def default_configs
|
267
267
|
{
|
268
268
|
info: {
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
269
|
+
version: "1.0.0",
|
270
|
+
title: "Open API",
|
271
|
+
description: "Open API",
|
272
|
+
contact: {
|
273
|
+
name: "OpenAPI"
|
274
274
|
}
|
275
275
|
},
|
276
276
|
servers: [
|
277
277
|
{
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
278
|
+
url: "http://localhost:{port}",
|
279
|
+
description: "Development server",
|
280
|
+
variables: {
|
281
|
+
port: {
|
282
|
+
default: "3000"
|
283
283
|
}
|
284
284
|
}
|
285
285
|
}
|