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

x-samples-languages support for Swagger configs #1287

Open
redactedontop opened this issue Jan 11, 2025 · 3 comments
Open

x-samples-languages support for Swagger configs #1287

redactedontop opened this issue Jan 11, 2025 · 3 comments

Comments

@redactedontop
Copy link

Hello!

I wanna add more programming language snippets to my Swagger UI configs (with axum and utoipa), but I'd pass on specifying a json config file. Is there a way to configure x-samples-languages in pure rust?

Thanks,
Alex <3

@infiniteregrets
Copy link

this should be possible once #1292 is merged

@juliendecharentenay
Copy link

@infiniteregrets Ping me if once #1292 is merged, it does not fully satisfy your use case. Once the PR is merged [I want to make sure the approach is agreeable to utoipa], I am thinking to expand the approach (openapi macro as well as the IntoXYZs).

@infiniteregrets
Copy link

infiniteregrets commented Jan 21, 2025

@juliendecharentenay currently i am editing with the Modify trait to add custom extensions, plan to merge your pr in mine and give it a try. thanks for the awesome work!

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

No branches or pull requests

3 participants