Skip to content

Conversation

@svix-mman
Copy link
Contributor

@svix-mman svix-mman commented Oct 3, 2025

Added a new function

pub async fn generate_codesamples(
    openapi_spec: &str,
    templates: CodesampleTemplates,
    excluded_operation_ids: BTreeSet<String>,
) -> anyhow::Result<BTreeMap<CodegenLanguage, Vec<CodeSample>>> {
}

Takes in an openapi spec, and returns a Map of language to a vec of code samples.

I moved the content of main.rs to lib.rs.
part of: https://github.com/svix/monorepo-private/issues/11473

@svix-mman svix-mman force-pushed the mendy/new-codesamples branch 13 times, most recently from fb103bb to 3837bb5 Compare October 6, 2025 13:26
@svix-mman svix-mman closed this Oct 6, 2025
@svix-mman svix-mman reopened this Oct 6, 2025
@svix-mman svix-mman force-pushed the mendy/new-codesamples branch 2 times, most recently from 4f41fbe to 5a02df3 Compare October 6, 2025 15:22
@svix-mman svix-mman changed the title [wip] Add infra to generate codesamples Add infra to generate codesamples Oct 6, 2025
@svix-mman svix-mman marked this pull request as ready for review October 6, 2025 15:24
@svix-mman svix-mman requested a review from a team as a code owner October 6, 2025 15:24
@svix-mman svix-mman force-pushed the mendy/new-codesamples branch from 5a02df3 to eb11672 Compare October 6, 2025 16:18
@svix-mman svix-mman merged commit e2f488e into main Oct 6, 2025
3 checks 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.

4 participants