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

Implement support for multiple HTTP success statuses #155

Merged

Conversation

haimgel
Copy link
Contributor

@haimgel haimgel commented Apr 26, 2023

When OutputWithHTTPStatus is implemented on the output port, HTTPStatus() defines the successful HTTP status of a given operation, and ExpectedHTTPStatuses() defines all expected HTTP statuses for API documentation purposes.

See #153 for the discussion about this feature.

When `OutputWithHTTPStatus` is implemented on the output port, `HTTPStatus()` defines the success HTTP status of a given operation, and `ExpectedHTTPStatuses()` defines all expected HTTP statuses for API documentation purposes.
@haimgel
Copy link
Contributor Author

haimgel commented Apr 26, 2023

@vearutop, any feedback is very welcome! In particular, I wasn't quite sure about the naming of this new interface and its methods, and which package exactly it should be.

@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #155 (794fde0) into master (0e69b49) will decrease coverage by 0.02%.
The diff coverage is 56.25%.

@@            Coverage Diff             @@
##           master     #155      +/-   ##
==========================================
- Coverage   77.68%   77.67%   -0.02%     
==========================================
  Files          28       28              
  Lines        1600     1608       +8     
==========================================
+ Hits         1243     1249       +6     
- Misses        235      236       +1     
- Partials      122      123       +1     
Flag Coverage Δ
unittests 77.67% <56.25%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
response/encoder.go 66.94% <50.00%> (+0.42%) ⬆️
openapi/collector.go 64.13% <60.00%> (-0.08%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@haimgel haimgel force-pushed the feature/multiple-success-http-statuses branch from 65e5f34 to 794fde0 Compare April 26, 2023 14:03
@vearutop
Copy link
Member

Thank you, looks good! 👍

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