oxidecomputer / oxidecomputer/typify
real-life example - mosaic vgplot spec conversion
Open
Nobody has claimed this yet.
fancy types
- Dominant language
- Rust
- Stars
- 898
- Forks
- 114
- Avg merge
- 4h 18m
- Merged PRs (30d)
- 14
Description
wget https://github.com/uwdata/mosaic/raw/refs/heads/main/docs/public/schema/v0.15.0.json
cargo typify v0.15.0.json
currently fails with
Message: not yet implemented: invalid (or unexpected) schema:
{
"type": [
"string",
"boolean",
"null"
],
"enum": [
"auto",
"up",
"right",
"down",
"left",
"none",
true,
false,
null
]
}
i think these vgspec, defining a grammar of graphics, could serve as useful example of a real-life scenario!
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 by downloading v0.15.0.json from the Mosaic repository and reproducing the failure with cargo typify. Trace handling of the reported string/boolean/null enum schema; done means the schema converts successfully into usable Rust types without the not-yet-implemented error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json, rust
- Domain
- compilers, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100