You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In openapi upload, we currently always bundle (with the fix in #1141, at least) the OAS and convert it to JSON prior to sending it to ReadMe.
This creates unexpected behavior for YAML files, where it's possible to send a YAML file and we'll send the file with a .yml file extension, yet the file blob itself is JSON due to our converting/bundling.
How should we handle this? Should we ever send the original, unbundled, unconverted file?
The text was updated successfully, but these errors were encountered:
## 🧰 Changes
when reviewing #1126, i noticed a
few small bugs in our `prepareOas` helper function. this PR makes a few
typesafety improvements so we shouldn't run into this issue again(?)
~~one outstanding question that i'd like to figure out prior to merge,
see #1142 (**edit**: going to
continue bundling and handle this issue in a follow-up PR)
## 🧬 QA & Testing
do tests + types pass?
when reviewing #1126, i noticed a
few small bugs in our `prepareOas` helper function. this PR makes a few
typesafety improvements so we shouldn't run into this issue again(?)
~~one outstanding question that i'd like to figure out prior to merge,
see #1142 (**edit**: going to
continue bundling and handle this issue in a follow-up PR)
do tests + types pass?
In
openapi upload
, we currently always bundle (with the fix in #1141, at least) the OAS and convert it to JSON prior to sending it to ReadMe.This creates unexpected behavior for YAML files, where it's possible to send a YAML file and we'll send the file with a
.yml
file extension, yet the file blob itself is JSON due to our converting/bundling.How should we handle this? Should we ever send the original, unbundled, unconverted file?
The text was updated successfully, but these errors were encountered: