oxidecomputer / oxidecomputer/progenitor

not yet implemented: expected one content entry, found 4

Open
#76 4 comments 1 reaction 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

Thanks for this library! I'm giving it a go for work purposes (https://github.com/brainstorm/ica-rs), unfortunately:

% cargo run
   Compiling ica-rust v0.1.0 (/Users/rvalls/dev/umccr/ica-rust)
error: proc macro panicked
 --> src/main.rs:4:5
  |
4 |     generate_api!(spec = "openapi/gds.json");
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: message: not yet implemented: expected one content entry, found 4

The offending .json can be obtained like so:

wget https://converter.swagger.io/api/convert?url=https%3A%2F%2Faps2.platform.illumina.com%2Fgds%2Fswagger%2Fv1%2Fswagger.json -O gds.json

I'll keep digging, I just wanted to make sure whether you or somebody else was planning to support multiple content entries before I deep dive on it ;)

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

Start by reproducing the failure with cargo run in the reporter's ica-rust example and the openapi/gds.json document, then trace the generate_api! proc-macro handling of response content entries. Done means the generator accepts this document with four content entries and the example builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, rust
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.