oxidecomputer / oxidecomputer/progenitor

Codegen fails with a `not implemented yet` panic for object with `format: date`

Open
#1,189 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

This is the API spec I was trying to generate code for: https://docs.finix.com/_spec/api/index.yaml

This is the error I get:

progenitor::generate_api!("finix.yaml");
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: message: not yet implemented: invalid (or unexpected) schema:
          {
            "description": "The principal control owner's date of birth.",
            "type": "object",
            "format": "date",
            "properties": {
              "day": {
                "description": "Day of birth (between 1 and 31).",
                "type": "integer"
              },
              "month": {
                "description": "Month of birth (between 1 and 12).",
                "type": "integer"
              },
              "year": {
                "description": "Year of birth (4-digit).",
                "type": "integer"
              }
            }
          }

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 with the progenitor::generate_api!("finix.yaml") entry point and reproduce the panic using the linked Finix API specification. Trace how the object schema with format: date is classified, then establish expected generation behavior and verify that code generation completes without the not implemented yet panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, rust
Domain
backend-api-design, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.