Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openapi3: fix format error when Header marshal to YAML #823

Merged
merged 1 commit into from
Aug 26, 2023

Conversation

caixw
Copy link
Contributor

@caixw caixw commented Aug 1, 2023

in YAML the header has parameter field, but JSON does not.

in YAML the header has parameter field, but JSON does not.
@@ -48,6 +48,11 @@ func (header *Header) UnmarshalJSON(data []byte) error {
return header.Parameter.UnmarshalJSON(data)
}

// MarshalJSON returns the JSON encoding of Header.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix that and please add a couple lines of shell in ci next to the other checks if you can. Something comparing the counts of the two functions implemented with git grep. I can take care of it otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, i can't write the shell.

@caixw caixw requested a review from fenollp August 24, 2023 16:17
@fenollp fenollp merged commit 91659ae into getkin:master Aug 26, 2023
7 checks passed
fenollp added a commit to fenollp/kin-openapi that referenced this pull request Aug 26, 2023
fenollp added a commit that referenced this pull request Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants