Skip to content

Commit

Permalink
Customizations via metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Roccoberton committed Mar 15, 2022
1 parent 4a1cf47 commit efe6f40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/openapi/record_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit efe6f40

Please sign in to comment.