Skip to content

Use array of operations to support multiple definitions per method #1

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

Merged
merged 2 commits into from
Nov 30, 2022

Conversation

grimmdude
Copy link
Member

@grimmdude grimmdude commented Nov 29, 2022

Relating to https://github.com/appsumo/originals-connect/issues/187, this change requires operations to be defined as an array under the method. It's a minor change, and allow for multiple trigger/action definitions per method.

Will require code changes in https://github.com/appsumo/originals-connect to support new structure (https://github.com/appsumo/originals-connect/pull/192).

Before

paths:
  /contacts:
    post:
      tags:
        - Contact
      summary: New contact
      description: Triggered when a new contact is created.
      operationId: contacts

After

paths:
  /contacts:
    post:
      -
        tags:
          - Contact
        summary: New contact
        description: Triggered when a new contact is created.
        operationId: contacts

@grimmdude grimmdude requested a review from marnietave November 29, 2022 21:48
@grimmdude grimmdude marked this pull request as ready for review November 29, 2022 21:48
@grimmdude grimmdude merged commit 98b96c8 into master Nov 30, 2022
@grimmdude grimmdude deleted the operation_arrays branch November 30, 2022 20:32
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.

2 participants