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

First minimal version adding response examples to Postman collections. #76

Merged
merged 16 commits into from
Mar 1, 2024

Conversation

jlengrand
Copy link
Contributor

@jlengrand jlengrand commented Feb 26, 2024

  • Need to add test
  • Need to handle codes properly
  • Need to ensure responses are placed in the right location

* Need to add test
* Need to handle codes properly
* Need to ensure responses are placed in the right location
* Not working with GET yet
* Commenting out relevant test for now as tests are malleable
* Refactors mustache template to avoid duplication
@jlengrand jlengrand changed the title WIP: First minimal version adding response examples to Postman collections. First minimal version adding response examples to Postman collections. Feb 28, 2024
@gcatanese
Copy link
Contributor

Awesome work, I left some comments to consider/address

@@ -0,0 +1,23 @@
package com.tweesky.cloudtools.codegen;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gcatanese I moved to something more generic, which should be better.

However, it does modify the behaviour somehow (for example "success" default cases).

can you confirm whether that is desired?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, an unexpected status code thrown an exception, which is probably better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, forgot that case, I'll an extra test!

@jlengrand
Copy link
Contributor Author

Hey @gcatanese before merging this do I need to do anything more? Create the new docker layer or something?

@gcatanese
Copy link
Contributor

Hey @gcatanese before merging this do I need to do anything more? Create the new docker layer or something?

Upon merge on main a new Docker image is built and pushed (Github action)

@jlengrand jlengrand merged commit 1b08bfc into main Mar 1, 2024
1 check passed
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