Drop application/yaml content type#933
Conversation
This is a breaking change for any clients that are currently requesting application/yaml. This is the simplest fix to sigstore#593, as openapi randomly switches between json and yaml responses when no content type is provided. Fixes sigstore#593 Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
|
Looks like there is a difference between how the comments are generated. This should be ok. |
|
hey 👋 when i open a PR there was a dependabot that making unnecessary commit automatically i have mo idea about that please help me i am stuck |
I think there's one additional thing in the Makefile that needs addressed: |
@Ansari-Danish please open a separate issue instead of discussing on an unrelated PR. Thanks! |
Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
|
@bobcallaway Updated the Makefile. Any advice on how to handle the client differences due to the comment? Can we just ignore the required check when merging? |
Codecov Report
@@ Coverage Diff @@
## main #933 +/- ##
==========================================
+ Coverage 48.20% 48.35% +0.15%
==========================================
Files 62 61 -1
Lines 5398 5383 -15
==========================================
+ Hits 2602 2603 +1
+ Misses 2513 2500 -13
+ Partials 283 280 -3
Help us with your feedback. Take ten seconds to tell us how you rate us. |
|
@bobcallaway Ran |
Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
|
Figured it out, I was using go 1.19 and not .18. |
* Drop application/yaml content type This is a breaking change for any clients that are currently requesting application/yaml. This is the simplest fix to sigstore#593, as openapi randomly switches between json and yaml responses when no content type is provided. Fixes sigstore#593 Signed-off-by: Hayden Blauzvern <hblauzvern@google.com> * remove default-consumes from Makefile Signed-off-by: Hayden Blauzvern <hblauzvern@google.com> * Fix comment generation Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
This is a breaking change for any clients that are currently requesting
application/yaml.
This is the simplest fix to #593, as openapi randomly switches between
json and yaml responses when no content type is provided.
Fixes #593
Signed-off-by: Hayden Blauzvern hblauzvern@google.com
Summary
Release Note
Dropped support for YAML content type
Documentation