Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

fix: if an OAS has an empty examples object, don't parse it #600

Merged
merged 2 commits into from
Apr 14, 2020

Conversation

erunion
Copy link
Member

@erunion erunion commented Apr 14, 2020

🧰 What's being changed?

This resolves a bug that cropped up in Sentry where if an operation response has an empty examples object (examples: {}), we'd try to parse it and ultimately fail when attempting to extract a value out of a non-object.

🗳 Checklist

💡 If answering yes to any of the following, include additional info, before/after links, screenshots, etc. where appropriate!

  • 🆕 I'm adding something new!
  • 🐛 I'm fixing a bug!
  • 📸 I've made some changes to the UI!

@erunion erunion added the type:bug Something isn't working label Apr 14, 2020
@erunion erunion merged commit b0887ad into master Apr 14, 2020
@erunion erunion deleted the fix/examples-that-might-be-empty branch April 14, 2020 00:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants