Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update vervet dependencies #269

Merged
merged 2 commits into from
Feb 6, 2023
Merged

fix: update vervet dependencies #269

merged 2 commits into from
Feb 6, 2023

Conversation

jlourenc
Copy link
Contributor

@jlourenc jlourenc commented Feb 4, 2023

Bumps Go dependencies to their latest minor versions.

getkin/kin-openapi is in v0 and introduced breaking changes in v0.113.0 that this changeset deals with: https://github.com/getkin/kin-openapi#v01130

OpenAPI Extensions are now of type map[string]interface{} instead of a map embedded in a struct. This impacts the way Reflect Walk has to be performed.

A few openapi3 types have now an extra unexported field which needs to be ignored when comparing struct with go-cmp.

A mergeMap generic utility function has been introduced to simplify merging components and avoid code repetition.

Fixes #268
Supersedes #259

Bumps Go dependencies to their latest minor versions.

getkin/kin-openapi is in v0 and introduced breaking changes in v0.113.0
that this changeset deals with: https://github.com/getkin/kin-openapi#v01130

OpenAPI Extensions are now of type map[string]interface{} instead of a
map embedded in a struct. This impacts the way Reflect Walk has to be
performed.

A few openapi3 types have now an `extra` unexported field which needs to
be ignored when comparing struct with go-cmp.

A mergeMap generic utility function has been introduced to simplify
merging components and avoid code repetition.
@jlourenc jlourenc requested a review from a team as a code owner February 4, 2023 13:53
@jlourenc jlourenc mentioned this pull request Feb 4, 2023
@jlourenc jlourenc merged commit 54e762a into main Feb 6, 2023
@jlourenc jlourenc deleted the fix/update-vervet-deps branch February 6, 2023 11:12
jlourenc added a commit that referenced this pull request Feb 7, 2023
PR #269 introduces a bug with the upgrade of kin-openapi. Component
extensions are not correctly identified and considered as part of
merging specs. However, a nil pointer exception can occur when no
extensions are specified as part of a spec.

This PR correctly handles this nil pointer and add tests to validate
behaviour.
jlourenc added a commit that referenced this pull request Feb 7, 2023
PR #269 introduces a bug with the upgrade of kin-openapi. Component
extensions are not correctly identified and considered as part of
merging specs. However, a nil pointer exception can occur when no
extensions are specified as part of a spec.

This PR correctly handles this nil pointer and add tests to validate
behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

github.com/getkin/kin-openapi/jsoninfo no longer exists
2 participants