Open
Description
Describe the bug
In the example below, Update<A>
emits the expected OpenAPI schema for UpA
but emits the full model as UpdateA
when used inline as a parameter value.
model A {
a: string;
@visibility(Lifecycle.Create, Lifecycle.Read)
b: string;
}
// UpA is correctly emitted with only the updateable properties of A
model UpA is Update<A>;
// UpdateA is incorrectly emitted with the all the properties of A
op updateOp(param: Update<A>): A;
Reproduction
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.