Skip to content

Conversation

@ajrice6713
Copy link
Contributor

No description provided.

@ajrice6713 ajrice6713 marked this pull request as ready for review September 29, 2022 21:50
@ajrice6713 ajrice6713 requested a review from a team September 29, 2022 21:50
nested_verbs=None
)

def add_verb(self, verb: Verb):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option - create a subclass of Verb(ex. TerminalVerb or LeafVerb) and implement this method in it. Actually this subclass can then have any specific characteristics of leaf/terminal Verb, not just disallowing adding child Verb As long as the inheritance chain is not more than three or so classes it would be maintainable and easy to understand.

@ajrice6713 ajrice6713 marked this pull request as draft September 30, 2022 13:42
@ajrice6713 ajrice6713 requested a review from bpateldx September 30, 2022 14:01
@ajrice6713 ajrice6713 marked this pull request as ready for review September 30, 2022 14:02
@ajrice6713 ajrice6713 merged commit 6f9c47d into feature/openapi-generator-sdk Sep 30, 2022
@ajrice6713 ajrice6713 deleted the DX-2887 branch September 30, 2022 14:33
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.

4 participants