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 example encoder config option #107

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

rChaoz
Copy link

@rChaoz rChaoz commented Jun 13, 2024

Closes #105

@waltkb waltkb mentioned this pull request Jun 14, 2024
@@ -34,7 +29,7 @@ class ExampleContextImpl : ExampleContext {
*/
fun add(routes: Collection<RouteMeta>) {
collectExampleDescriptors(routes).forEach { exampleDescriptor ->
rootExamples[exampleDescriptor] = generateExample(exampleDescriptor)
rootExamples[exampleDescriptor] = exampleDescriptor
Copy link
Owner

Choose a reason for hiding this comment

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

i think i am missing why we need to generate the example in the getter and not here. Couldn't collectExampleDescriptors return the descriptor together with a type so that we can generate the final swagger Example object here?

Copy link
Author

@rChaoz rChaoz Jun 27, 2024

Choose a reason for hiding this comment

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

did the thing, maybe you can merge and release soon 🙂

@waltkb
Copy link

waltkb commented Jun 25, 2024

Hi @SMILEY4, is there anything I can help with to get this PR merged?

@SMILEY4
Copy link
Owner

SMILEY4 commented Jun 27, 2024

Hi @SMILEY4, is there anything I can help with to get this PR merged?

thank you and sorry for the delay. PR looks good in my opinion - there is an open question of understanding from my side but i think we can still merge it. I'll try to close it soon and release a new version for it.

@rChaoz rChaoz requested a review from SMILEY4 June 27, 2024 08:58
@SMILEY4 SMILEY4 merged commit 68976b4 into SMILEY4:develop Jun 28, 2024
2 checks passed
@rChaoz rChaoz deleted the feat/examples-encoder branch June 28, 2024 16:18
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.

v3.0 missing feature - configuring the example encoder
3 participants