oxidecomputer / oxidecomputer/typify
for types that result from merged `allOf` constructs, implement conversion to the component types
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 898
- Forks
- 114
- Avg merge
- 4h 18m
- Merged PRs (30d)
- 14
Description
If we see an allOf, we'll merge that into a type that's the intersection of the components of the subschema array. In such a situation it would be nice to have conversion methods:
pub struct MergedTypes { }
impl From<MergedType> for ComponentType1 { }
impl From<MergedType> for ComponentType2 { }
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
No files, tests, or entry points are named in the issue. Start by tracing the code that merges allOf subschemas into a generated intersection type, then determine how conversions to each component type should be represented. Done means merged types expose conversions for every component type and the behavior is covered by relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100