rspec-openapi 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -4
- data/lib/rspec/openapi/default_schema.rb +1 -1
- data/lib/rspec/openapi/version.rb +1 -1
- data/lib/rspec/openapi.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4d19b6239f38863e5cc4a7924d4dc9fc6f684a03f057f49371b4bd110fc312e
|
4
|
+
data.tar.gz: 972520dcffe3b393e32194a0fa4f9154c93c097f63d81750d7ac5d5b15d229d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 377aa3ea1a708b7ba2a8fd9cbaf96f0e6cf3588bdfbedcb14ee3ccb30c478c54e2d34fcd8e08bafc25c4c3cfab0062a4deb9781cf63e1c001b6e16750348222e
|
7
|
+
data.tar.gz: eebc893ceb3eaa4207fcbac83e453ea19adcfdc5b64d82725f441dfa8fa33142bab178dd21b76318dbf6f01afa80da40a9f50b5c87c726a2e63fd3bfd56e4386
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -140,10 +140,8 @@ RSpec::OpenAPI.info = {
|
|
140
140
|
# Set `headers` - generate parameters with headers for a request
|
141
141
|
RSpec::OpenAPI.request_headers = %w[X-Authorization-Token]
|
142
142
|
|
143
|
-
# Set `
|
144
|
-
RSpec::OpenAPI.
|
145
|
-
http://localhost:3000
|
146
|
-
]
|
143
|
+
# Set `servers` - generate servers of a schema file
|
144
|
+
RSpec::OpenAPI.servers = [{ url: 'http://localhost:3000' }]
|
147
145
|
|
148
146
|
# Generate a comment on top of a schema file
|
149
147
|
RSpec::OpenAPI.comment = <<~EOS
|
data/lib/rspec/openapi.rb
CHANGED
@@ -9,10 +9,10 @@ module RSpec::OpenAPI
|
|
9
9
|
@info = {}
|
10
10
|
@application_version = '1.0.0'
|
11
11
|
@request_headers = []
|
12
|
-
@
|
12
|
+
@servers = []
|
13
13
|
@example_types = %i[request]
|
14
14
|
|
15
15
|
class << self
|
16
|
-
attr_accessor :path, :comment, :enable_example, :description_builder, :info, :application_version, :request_headers, :
|
16
|
+
attr_accessor :path, :comment, :enable_example, :description_builder, :info, :application_version, :request_headers, :servers, :example_types
|
17
17
|
end
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-openapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
|
-
rubygems_version: 3.
|
92
|
+
rubygems_version: 3.1.2
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Generate OpenAPI schema from RSpec request specs
|