diff --git a/lib/rspec/openapi/record_builder.rb b/lib/rspec/openapi/record_builder.rb index a4cca6a1..5a68c50c 100644 --- a/lib/rspec/openapi/record_builder.rb +++ b/lib/rspec/openapi/record_builder.rb @@ -48,8 +48,8 @@ def build(context, example:) request_params: raw_request_params(request), request_content_type: request.media_type, request_headers: request_headers, - summary: summary, - tags: tags, + summary: example.metadata[:openapi_summary] || summary, + tags: example.metadata[:openapi_tags] || tags, description: RSpec::OpenAPI.description_builder.call(example), status: response.status, response_body: response_body,