Skip to content

feat(openapi3): WebhookNilError for nil-pathitem webhook#1179

Closed
reuvenharrison wants to merge 1 commit into
getkin:masterfrom
oasdiff:feat/validation-error-scraps
Closed

feat(openapi3): WebhookNilError for nil-pathitem webhook#1179
reuvenharrison wants to merge 1 commit into
getkin:masterfrom
oasdiff:feat/validation-error-scraps

Conversation

@reuvenharrison

Copy link
Copy Markdown
Contributor

Single-site cluster WebhookNilError for the nil-pathitem check in T.Validate's webhook walk.

Site Leaf Field
openapi3.go:341 *WebhookNil webhook key (carried as Name string on the cluster)

The cluster carries the offending key so callers don't have to parse webhook %q is nil to recover it.

Backward compat

Error string preserved byte-for-byte (including the surrounding invalid webhooks: ... wrap).

Tests

TestValidationError_WebhookNilLeaf covers the site end-to-end.

…k walk

Single-site cluster carrying the offending webhook key name.
@reuvenharrison

Copy link
Copy Markdown
Contributor Author

Superseded by #1180 — combined per @fenollp's request on #1177 to avoid rebase churn. The original commit on this branch is preserved unchanged in #1180.

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.

1 participant