oxidecomputer / oxidecomputer/progenitor
Codegen fails with a `not implemented yet` panic for object with `format: date`
Open
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
- 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
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