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

Preserve existing media type value during response parsing #118

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

vearutop
Copy link
Member

No description provided.

Copy link

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 21 3958 (-6) 2945 (-8) 214 799 (+2) 807 91K (-140B)
Go (test) 22 6381 (+178) 4875 (+160) 660 846 (+18) 61 (+2) 164.3K (+4.2K)

Copy link

Go API Changes

# summary
Inferred base version: v0.2.51
Suggested version: v0.2.52

Copy link

Unit Test Coverage

total: (statements) 46.0%
changed lines: (statements) 100.0%

Coverage of changed lines
File Function Coverage
Total 100.0%
openapi3/reflect.go 100.0%
openapi3/reflect.go:691 parseJSONResponse 100.0%
openapi31/reflect.go 100.0%
openapi31/reflect.go:642 parseJSONResponse 100.0%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 45.6% 46.0% (+0.4%)
openapi3/entities.go WithContentItem 0.0% 100.0% (+100.0%)
openapi3/entities.go WithValue 0.0% 100.0% (+100.0%)
openapi3/jsonschema.go fromSchemaArray 25.0% 100.0% (+75.0%)
openapi3/reflect.go parseJSONResponse 93.8% 94.4% (+0.6%)
openapi31/entities.go WithContentItem 0.0% 100.0% (+100.0%)
openapi31/entities.go WithValue 0.0% 100.0% (+100.0%)
openapi31/reflect.go parseJSONResponse 86.7% 88.2% (+1.5%)

@vearutop vearutop merged commit ff01e36 into master Jun 25, 2024
6 checks passed
@vearutop vearutop deleted the media-type-examples branch June 25, 2024 08:46
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.

1 participant