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

chore(deps): upgrading @readme/oas-tooling to 2.1.0 #494

Merged
merged 3 commits into from
Feb 26, 2020

Conversation

erunion
Copy link
Member

@erunion erunion commented Feb 26, 2020

This upgrades our core @readme/oas-tooling package to resolve a bug where we'd allow empty default properties through on parameters and request bodies, without first looking for allowEmptyValue. The downstream effect of this was that we were happily passing along empty defaults when they shouldn't be present, resulting in API requests being made with payloads that looked as such:

75067574-2e831880-54a2-11ea-9930-38c03fb15773

Check readmeio/oas#110 for more details, and comprehensive unit tests, on the fix.

Testing

I've added a new empty-params document into our examples directory to showcase this error (and fix) in action.

Before

Screen Shot 2020-02-26 at 11 41 11 AM

After

Screen Shot 2020-02-26 at 11 34 52 AM

@erunion erunion added type:bug Something isn't working scope:dependency Pull requests that update a dependency file labels Feb 26, 2020
@erunion erunion marked this pull request as ready for review February 26, 2020 19:47
@erunion erunion changed the title chore(deps): upgrading @readme/oas-tooling to 2.1.0-alpha.0 chore(deps): upgrading @readme/oas-tooling to 2.1.0 Feb 26, 2020
@erunion erunion merged commit b9528d5 into master Feb 26, 2020
@erunion erunion deleted the fix/sending-empty-strings branch February 26, 2020 20:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope:dependency Pull requests that update a dependency file type:bug Something isn't working
2 participants