Overview

\Drupal\experience_builder\EventSubscriber\ApiResponseValidator::performXbValidation() seems to be effectively dead code in the absence of the x-xb-validation custom openapi.yml validation method being discussed in #3471064: OpenApi validation is not enforced because openapi.yml uses `patternProperties` which is not supported by our dependencies.

Proposed resolution

We should remove the dead code and let them decide how to handle the whole feature atomically in #3471064: OpenApi validation is not enforced because openapi.yml uses `patternProperties` which is not supported by our dependencies.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

traviscarden created an issue. See original summary.

traviscarden’s picture

Assigned: traviscarden » tedbow
Status: Active » Needs review
traviscarden’s picture

Issue tags: +openapi
tedbow’s picture

Status: Needs review » Reviewed & tested by the community

yep, this find we can add it back exactly in the other issue if we need it

  • traviscarden committed bcf659ba on 0.x
    Issue #3478830 by traviscarden: Remove dead `ApiResponseValidator::...
tedbow’s picture

Assigned: tedbow » Unassigned
Status: Reviewed & tested by the community » Fixed
wim leers’s picture

The removal of x-xb-validation in /openapi.yml seems to have been accidental in this commit: https://git.drupalcode.org/project/experience_builder/-/merge_requests/1... ? 🤔

traviscarden’s picture

Is that a question, @wim leers? 🙂

wim leers’s picture

Status: Fixed » Needs review

Yes … it's me asking for confirmation whether this piece of code was intentionally dead or just accidentally wounded 😇

traviscarden’s picture

"Wounded." Haha. No, it was actually dead. As I understand @tedbow per a conversation we had outside this issue, it was removed on purpose and put back in by accident during a merge or rebase. Trust us, @wim leers : we don't make mistakes around here. At least not when we're correcting our mistakes. 😉

wim leers’s picture

Status: Needs review » Fixed

😄

What a lovely comment! 👏

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.