Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

fix: handle empty files #246

Merged
merged 4 commits into from
Jan 5, 2023
Merged

fix: handle empty files #246

merged 4 commits into from
Jan 5, 2023

Conversation

kanadgupta
Copy link
Member

🧰 Changes

Noticed a weird edge case in rdme where loading an empty file will yield an error like this:

Cannot read property 'openapi' of undefined

You can recreate this error pretty easily by running the following (with the latest version of rdme installed):

touch empty.json
rdme openapi:validate empty.json

🧬 QA & Testing

Do tests pass?

@kanadgupta kanadgupta added the bug Something isn't working label Jan 5, 2023
@kanadgupta kanadgupta requested a review from erunion January 5, 2023 18:38
Co-authored-by: Jon Ursenbach <[email protected]>
@kanadgupta kanadgupta merged commit 5c139e4 into main Jan 5, 2023
@kanadgupta kanadgupta deleted the fix/empty-files branch January 5, 2023 20:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants