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

Add macros for components #12

Merged
merged 9 commits into from
Oct 22, 2024

Conversation

jonschumacher
Copy link
Contributor

@jonschumacher jonschumacher commented Jul 26, 2024

This PR adds macros for the component section of an OpenAPI file. I also added a scheme for OpenAPI 3.1 to allow for referencing e.g. parameters.

Closes #7

@PGimenez
Copy link
Member

Thank you very much for this PR @jonschumacher, and apologies for taking so long to review it. I'm not familiar with components, although from what I've seen in the Swagger docs and in your code this would be very useful to avoid code repetition.

I see you've added a section to the README showing how to declare a component. Could you please also show how to reference said component from somewhere else? Thank you

@jonschumacher
Copy link
Contributor Author

No worries, we all have much on the table. b639861 adds a usage example to the README.

@PGimenez
Copy link
Member

Thank you! Merging now

@PGimenez PGimenez merged commit 47bf5fc into GenieFramework:master Oct 22, 2024
10 checks passed
@jonschumacher jonschumacher deleted the JS/add-components branch October 22, 2024 10:56
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.

Can only describe subkeys of "paths:"
2 participants