Skip to content

Method::getExampleByType is broken (beyond repair?) #32

@pies

Description

@pies
  1. Method::getExampleByType uses $this->body which doesn't exist. It should use $this->bodyList instead.
  2. $this->bodyList contains BodyInterface elements, but unfortunately BodyInterface is rather limited, so it's impossible to check if it has an example without widening the interface.

Since the same thing can be achieved without using this helper method, I suggest this method is removed (or fixed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions