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

Support for custom code samples via x-codeSamples #712

Closed
rattrayalex opened this issue Jan 25, 2024 · 2 comments
Closed

Support for custom code samples via x-codeSamples #712

rattrayalex opened this issue Jan 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@rattrayalex
Copy link

Is your feature request related to a problem?

Yes, I would like docs to render with snippets that show use of an API's custom-built SDKs, rather than generic http requests. This is what Stripe does.

Describe the solution you'd like

If x-codeSamples is present, as with redocly, render the code present there rather than the code that would be generated by default.

Describe alternatives you've considered

n/a

Additional context

Previously discussed at #153

I might be willing to fund a PR for this if it would be accepted. Please share any requirements for it.

@rattrayalex rattrayalex added the enhancement New feature or request label Jan 25, 2024
@rattrayalex
Copy link
Author

@sserrata would you accept a PR adding this?

@sserrata
Copy link
Member

Addressed in:

#697
#701
#706
#707

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants