Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Conversation

kylef
Copy link
Member

@kylef kylef commented Mar 5, 2020

Prevents an exception being raised when using freeze() on the parse result returned by the parser when the OpenAPI document uses a request header with multiple request/response pairs.

@marcofriso btw, this is the problem I was mentioning in #415 (comment) due to lack of cloning. Since when you have two requests here, the "headers" are copied to each one so they must be cloned first.

This was discovered in apiaryio/dredd#1685.

Copy link
Contributor

@marcofriso marcofriso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, for what I understand this problem may appear again elsewhere in case of multiple elements?

@kylef kylef merged commit fa85f5b into master Mar 11, 2020
@kylef kylef deleted the kylef/dredd-1685 branch March 11, 2020 12:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants