rspec-openapi 0.1.3 → 0.1.4
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 +1 -1
- data/lib/rspec/openapi/schema_builder.rb +2 -2
- data/lib/rspec/openapi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6592834cfaeab157827636bb38312e11e49bbb109da57290585ebd8d06f0a027
|
4
|
+
data.tar.gz: 717567dede6a8966d42cd6bdbd8ec0d68c59f92015bfe08285b22bbf15743614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fc45e3e2fe27cf6dc049fe079435e14459e0af479971cf6da7ad074673ab371b37bb831bbacbffc6a244fa3dca63c33c8ebc51608706da351c35f4734ce629e
|
7
|
+
data.tar.gz: 5466deae08cd7b298386fbcd7e9d399840e10144483d7a6bb93c296791666f33450e7d3628eebe41a4400f28ce7c810c57c640c9f4794374f5401ad640c9b16a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@ class << RSpec::OpenAPI::SchemaBuilder = Object.new
|
|
6
6
|
paths: {
|
7
7
|
normalize_path(record.path) => {
|
8
8
|
record.method.downcase => {
|
9
|
-
summary: "#{record.controller}##{record.action}",
|
9
|
+
summary: "#{record.controller} ##{record.action}",
|
10
10
|
parameters: build_parameters(record),
|
11
11
|
requestBody: build_request_body(record),
|
12
12
|
responses: {
|
@@ -113,6 +113,6 @@ class << RSpec::OpenAPI::SchemaBuilder = Object.new
|
|
113
113
|
end
|
114
114
|
|
115
115
|
def normalize_content_type(content_type)
|
116
|
-
content_type
|
116
|
+
content_type&.sub(/;.+\z/, '')
|
117
117
|
end
|
118
118
|
end
|