rswag-specs 2.11.0 → 2.12.0
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/rswag/specs/configuration.rb +6 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8365b4004ddfecc85ca45dd075921a254a22445f83dfbca7d400c80b92090062
|
|
4
|
+
data.tar.gz: c9909fc3b98dd83eae3f5d1d83cf065cb293583fc6b9b1edcad696cd5bf5398f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d605e82f0cf92dc730a7c33ff205758328be6874381e72dfa7c5ff2adcc4ad330e67a1ca36781a838a09556059ad2a574b32c9fdb3ef7eeada7b9215465a1ff3
|
|
7
|
+
data.tar.gz: 1f9368eb7f6a268f59114ecf6a2fa8493cc855e8e9aeb708f6fe762e623a5a606b01080e44cd85734fe72add620d08c85949be71e31ae2f6c4207a4c047b9e63
|
|
@@ -8,6 +8,7 @@ module Rswag
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def swagger_root
|
|
11
|
+
ActiveSupport::Deprecation.warn('Rswag::Specs: WARNING: The method will be renamed to "openapi_root" in v3.0')
|
|
11
12
|
@swagger_root ||= begin
|
|
12
13
|
if @rspec_config.swagger_root.nil?
|
|
13
14
|
raise ConfigurationError, 'No swagger_root provided. See swagger_helper.rb'
|
|
@@ -18,6 +19,7 @@ module Rswag
|
|
|
18
19
|
end
|
|
19
20
|
|
|
20
21
|
def swagger_docs
|
|
22
|
+
ActiveSupport::Deprecation.warn('Rswag::Specs: WARNING: The method will be renamed to "openapi_specs" in v3.0')
|
|
21
23
|
@swagger_docs ||= begin
|
|
22
24
|
if @rspec_config.swagger_docs.nil? || @rspec_config.swagger_docs.empty?
|
|
23
25
|
raise ConfigurationError, 'No swagger_docs defined. See swagger_helper.rb'
|
|
@@ -28,6 +30,7 @@ module Rswag
|
|
|
28
30
|
end
|
|
29
31
|
|
|
30
32
|
def swagger_dry_run
|
|
33
|
+
ActiveSupport::Deprecation.warn('Rswag::Specs: WARNING: The method will be renamed to "rswag_dry_run" in v3.0')
|
|
31
34
|
return @swagger_dry_run if defined? @swagger_dry_run
|
|
32
35
|
if ENV.key?('SWAGGER_DRY_RUN')
|
|
33
36
|
@rspec_config.swagger_dry_run = ENV['SWAGGER_DRY_RUN'] == '1'
|
|
@@ -36,6 +39,7 @@ module Rswag
|
|
|
36
39
|
end
|
|
37
40
|
|
|
38
41
|
def swagger_format
|
|
42
|
+
ActiveSupport::Deprecation.warn('Rswag::Specs: WARNING: The method will be renamed to "openapi_format" in v3.0')
|
|
39
43
|
@swagger_format ||= begin
|
|
40
44
|
@rspec_config.swagger_format = :json if @rspec_config.swagger_format.nil? || @rspec_config.swagger_format.empty?
|
|
41
45
|
raise ConfigurationError, "Unknown swagger_format '#{@rspec_config.swagger_format}'" unless [:json, :yaml].include?(@rspec_config.swagger_format)
|
|
@@ -45,6 +49,7 @@ module Rswag
|
|
|
45
49
|
end
|
|
46
50
|
|
|
47
51
|
def get_swagger_doc(name)
|
|
52
|
+
ActiveSupport::Deprecation.warn('Rswag::Specs: WARNING: The method will be renamed to "get_openapi_spec" in v3.0')
|
|
48
53
|
return swagger_docs.values.first if name.nil?
|
|
49
54
|
raise ConfigurationError, "Unknown swagger_doc '#{name}'" unless swagger_docs[name]
|
|
50
55
|
|
|
@@ -57,6 +62,7 @@ module Rswag
|
|
|
57
62
|
end
|
|
58
63
|
|
|
59
64
|
def swagger_strict_schema_validation
|
|
65
|
+
ActiveSupport::Deprecation.warn('Rswag::Specs: WARNING: The method will be renamed to "openapi_strict_schema_validation" in v3.0')
|
|
60
66
|
@swagger_strict_schema_validation ||= (@rspec_config.swagger_strict_schema_validation || false)
|
|
61
67
|
end
|
|
62
68
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rswag-specs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richie Morris
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2023-
|
|
13
|
+
date: 2023-11-25 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activesupport
|
|
@@ -41,7 +41,7 @@ dependencies:
|
|
|
41
41
|
version: '2.2'
|
|
42
42
|
- - "<"
|
|
43
43
|
- !ruby/object:Gem::Version
|
|
44
|
-
version: '
|
|
44
|
+
version: '5.0'
|
|
45
45
|
type: :runtime
|
|
46
46
|
prerelease: false
|
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -51,7 +51,7 @@ dependencies:
|
|
|
51
51
|
version: '2.2'
|
|
52
52
|
- - "<"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
54
|
+
version: '5.0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: railties
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|