Skip to content

Commit f3a44e7

Browse files
Fixes generation issues in Roda (#239)
* Fixes generation issues in Roda * Fix semantic conflict --------- Co-authored-by: exoego <[email protected]>
1 parent bfa82ae commit f3a44e7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/rspec/openapi/extractors/rails.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def request_attributes(request, example)
1212

1313
route, path = find_rails_route(fixed_request)
1414

15-
raise "No route matched for #{fixed_request.request_method} #{fixed_request.path_info}" if route.nil?
16-
1715
return RSpec::OpenAPI::Extractors::Rack.request_attributes(request, example) unless path
1816

17+
raise "No route matched for #{fixed_request.request_method} #{fixed_request.path_info}" if route.nil?
18+
1919
metadata = example.metadata[:openapi] || {}
2020
summary = metadata[:summary] || RSpec::OpenAPI.summary_builder.call(example)
2121
tags = metadata[:tags] || RSpec::OpenAPI.tags_builder.call(example)

spec/apps/roda/doc/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"title": "Override title",
4+
"title": "OpenAPI Documentation",
55
"version": "7.7.7"
66
},
77
"servers": [

spec/apps/roda/doc/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
openapi: 3.0.3
33
info:
4-
title: Override title
4+
title: OpenAPI Documentation
55
version: 7.7.7
66
servers: []
77
paths:

0 commit comments

Comments
 (0)