Skip to content
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

feat(docs): add multiple examples support and webhook schema #1864

Merged
merged 12 commits into from
Aug 9, 2023

Conversation

Narayanbhat166
Copy link
Member

Type of Change

  • New feature

Description

Add webhooks schema and multiple examples support for openapi.

Motivation and Context

Multiple examples would be needed to convey the right set of fields required to be sent for a particular kind of payment. This Pr adds support to add multiple examples by specifying the examples as a json string in the openapi_consts file in common_utils crate.

How did you test it?

Generate the openapi file and check in any swagger ui availble online.

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed submitted code

@Narayanbhat166 Narayanbhat166 added C-doc Category: Documentation updates S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Aug 4, 2023
@Narayanbhat166 Narayanbhat166 added this to the July 2023 Release milestone Aug 4, 2023
@Narayanbhat166 Narayanbhat166 self-assigned this Aug 4, 2023
@Narayanbhat166 Narayanbhat166 requested review from a team as code owners August 4, 2023 06:01
crates/api_models/src/webhooks.rs Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

Can we move these to the router crate if it's the only crate accessing it? Maybe a module in the openapi module?

@SanchithHegde SanchithHegde added S-waiting-on-author Status: This PR is incomplete or needs to address review comments and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Aug 7, 2023
@Narayanbhat166 Narayanbhat166 added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Aug 8, 2023
jarnura
jarnura previously approved these changes Aug 8, 2023
@Narayanbhat166 Narayanbhat166 added S-ready-for-merge and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Aug 8, 2023
@SanchithHegde SanchithHegde added the S-waiting-on-author Status: This PR is incomplete or needs to address review comments label Aug 8, 2023
SanchithHegde
SanchithHegde previously approved these changes Aug 8, 2023
@SanchithHegde SanchithHegde added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Aug 8, 2023
@jarnura jarnura removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Aug 8, 2023
@jarnura jarnura enabled auto-merge August 8, 2023 20:25
@jarnura jarnura added this pull request to the merge queue Aug 9, 2023
Merged via the queue into main with commit f8ef52c Aug 9, 2023
10 of 11 checks passed
@jarnura jarnura deleted the add_multiple_examples_and_webhook_schema branch August 9, 2023 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-doc Category: Documentation updates
Projects
No open projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

4 participants