oxidecomputer / oxidecomputer/typify

for types that result from merged `allOf` constructs, implement conversion to the component types

Open
#726 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.