The split was not clear between property-type and type-or-title, so it was not obvious which partial should be called for recursion. That resulted in an error where type-or-title was only called for objects and array items, even if it also resolves arrays of types.
This makes the split clearer. property-type must be called for any schema, and object-type-or-title is only called for object schemas.
This fixes some rendering in the CS API, for example the displayname of m.room.member:
The split was not clear between property-type and type-or-title, so it was not obvious which partial should be called for recursion. That resulted in an error where type-or-title was only called for objects and array items, even if it also resolves arrays of types.
This makes the split clearer. property-type must be called for any schema, and object-type-or-title is only called for object schemas.
This fixes some rendering in the CS API, for example the
displayname
ofm.room.member
:Before:
After:
Also the
value
of aPushCondition
:Before:
After:
Preview: https://pr1789--matrix-spec-previews.netlify.app