oxidecomputer / oxidecomputer/progenitor
TypeError(InvalidValue) when generating client
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1k
- Forks
- 136
- Avg merge
- 8h 36m
- Merged PRs (30d)
- 14
Description
Hi there,
i cant get the generation of a crate to work when using the jellyfin-api spec.
According to openapi-generator the spec is not malformed but quite large and messy.
cargo progenitor -i jellyfin-openapi-stable.json -o bindings -n bindings --version 10.11.0
gen fail: TypeError(InvalidValue)
Error: generation experienced errors
Stack backtrace:
0: anyhow::error::<impl anyhow::Error>::msg
1: cargo_progenitor::main
2: std::sys::backtrace::__rust_begin_short_backtrace
3: std::rt::lang_start::{{closure}}
4: std::rt::lang_start_internal
5: main
6: <unknown>
7: __libc_start_main
8: _start
The stacktrace is also not very helpful but it seems the error comes from the typify crate here
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the provided cargo progenitor command and jellyfin-openapi-stable.json. Inspect progenitor-impl/src/lib.rs around line 326 and the typify error path; done means generation completes or reports a more useful, actionable error for this specification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100