oxidecomputer / oxidecomputer/typify
Compilation failure
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 898
- Forks
- 114
- Avg merge
- 4h 18m
- Merged PRs (30d)
- 14
Description
error: proc macro panicked
--> src/main.rs:2:1
|
2 | typify::import_types!("./src/devContainer.base.schema.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: not yet implemented: invalid (or unexpected) schema:
{
"description": "Indicates whether a GPU is required. The string \"optional\" indicates that a GPU is optional. An object value can be used to configure more detailed requirements.",
"type": [
"boolean",
"string"
],
"enum": [
true,
false,
"optional"
]
}
error: could not compile `foo` (bin "foo") due to 1 previous error
If you comment out https://github.com/devcontainers/spec/blob/113500f4125e0f14c9293adf4d8d94a861e0ec11/schemas/devContainer.base.schema.json#L454-L465 it compiles
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 from src/main.rs using typify::import_types! with the referenced devContainer.base.schema.json. Start by examining how typify handles the shown boolean/string schema with an enum, then identify the relevant compiler tests or schema fixtures. Done means the schema compiles without the proc macro panic and existing behavior remains covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100