Commit 622c56f
feat(schema): expose kind as a property on write schema nodes [INFP-234]
Reading a locally-authored (write) schema needs `.kind` attribute access
(e.g. the protocols CLI command). Expose `kind` as a plain property on the
write node models — derived from namespace+name, like on read — but do not
serialize it: on write it stays a property (not a `@computed_field`) so it
never enters the payload, where `extra="forbid"` would reject it on the
round-trip through the write/load contract. `hash` remains read-only.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 71f3113 commit 622c56f
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
509 | 513 | | |
510 | 514 | | |
511 | 515 | | |
| |||
0 commit comments