oxidecomputer / oxidecomputer/progenitor

Check OpenAPI version before proceeding

Open
#674 4 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

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.