oxidecomputer / oxidecomputer/progenitor
Check OpenAPI version before proceeding
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1k
- Forks
- 136
- Avg merge
- 8h 36m
- Merged PRs (30d)
- 14
Description
Using this JSON:
I get the following error with a cargo install cargo-progenitor that I did a few minutes ago:
# cargo progenitor -i openapis/panelapp.json -o ../panelapp -n panelapp -v 0.1.0
Error: paths: data did not match any variant of untagged enum ReferenceOr at line 36 column 12
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 PanelApp OpenAPI URL and the openapis/panelapp.json input using cargo progenitor. Start at the OpenAPI parsing path that reports the ReferenceOr error, then verify that the OpenAPI version is checked before generation proceeds. Done means unsupported or incompatible versions produce a clear diagnostic instead of the current parsing error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, rust
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100