* claim: #11862
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Physical materials: input and output schemas for New, Edit, Inspect and Delete Physical Material (#11862)
describe_command now gives the exact parameters and reply of
material.create, material.edit, material.inspect and material.delete,
and the warn and strict parameter checks use them. The handlers read
their parameters from the raw JSON, so the contracts in the new
schema/materials.rs read each key as its handler does, with its
message: `null` keeps its meaning (`color: null` and `physical_card:
null` clear), the look keys reuse the appearance commands' types, and
the card keeps the handler's own check, with its schema from
schema/material_properties.rs (whose card_schema becomes pub(super)).
The replies are built from typed values instead of json! literals, with
the same JSON.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Colour schema: a colour's text form allows what color_param reads
inspect::color_param trims the text and drops any number of leading
`#`, so " #ff00ff " and "##ff00ff" are colours to appearance.assign
and the material commands, but ColorParam's published pattern refused
them. The pattern is now built from schema::types' whitespace class (as
AxisDir's is), which becomes pub(crate), and a test pins it next to the
reader's answers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Colour pattern: a byte may be `+` and one hex digit, as the reader takes it
`inspect::color_param` parses each of the three bytes with
`u8::from_str_radix`, which accepts a leading `+`, so "+fff00" is read as
[15, 255, 0] today. The schema's pattern asked for six hex digits and
would have made strict refuse a colour the handler accepts. The pattern
now allows either two hex digits or `+` and one digit per byte, and the
test pins both the reader's answer and the pattern's text, since
`conforms` doesn't read patterns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>