oxidecomputer / oxidecomputer/progenitor

progenitor fails processing the commercetools OpenAPI spec

Open
#661 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1k
Forks
136
Avg merge
8h 36m
Merged PRs (30d)
14

Description

I want to generate a commercetools OpenAPI client and tried to process the OpenAPI spec from commercetools:

https://github.com/commercetools/commercetools-api-reference/blob/main/oas/api/openapi.yaml

Unfortunalty then generation failed pretty quickly:

cargo progenitor -i openapi.yaml -o ct_prog -n ct_prog -v 0.0.1

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
[1]    11024 abort      cargo progenitor -i openapi.yaml -o ct_prog -n ct_prog -v 0.0.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Download the commercetools openapi.yaml from the linked repository and rerun the reported cargo progenitor command. Trace where processing the specification reaches the stack overflow, then verify that generation completes and produces the requested client without exhausting the stack.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, rust
Domain
api, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.