Commit cb8bfd6
committed
fix(spec): restore writeOnly on passwordProfile.password + describe PartialSuccess
Two leftover smells from the original v1.0.yaml that the TypeSpec port
had inherited unchanged:
`passwordProfile.password` lost `writeOnly: true` during the migration
because the idiomatic `@visibility(Lifecycle.Create, Lifecycle.Update)`
triggers Read/Update variant generation that collides with the explicit
`@friendlyName("userUpdate")` on `userBase`. Switch to
`@extension("writeOnly", true)` which emits the JSON Schema flag
directly without involving TypeSpec's visibility/variant machinery —
the OpenAPI now carries `writeOnly: true` again, the generated clients
get the matching marker.
`PartialSuccess` (the 207 response on `invite` / `createLink`) carried
a literal `"Partial success response TODO"` description from the
hand-written spec. Replace with a real explanation: `207` means at
least one sub-operation failed (e.g. one invitee out of many couldn't
be granted access), body shape is unspecified, clients should treat
it as a soft failure and inspect server-side state to determine which
sub-operations succeeded.1 parent 7d86466 commit cb8bfd6
2 files changed
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 127 | + | |
129 | 128 | | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
870 | 877 | | |
871 | 878 | | |
872 | 879 | | |
| |||
0 commit comments