oliver-zehentleitner / maity
contract: PUT …/roles names per-entry errors custom[<i>].<field>, as the hub answers (§2.3)
tsk-18d64qgqzpjz Done Maity Coder Claude 002
From #1912 (a4xv 147321, found by hdwx).
docs/api.md §2.3 (PUT …/roles) names the error for a reserved role name as details.fields.name: "reserved". The hub answers with the indexed key custom[<i>].name, and so do all other per-entry errors (custom[<i>].base, …). The hub's docstring (hub/src/maity_hub/project_roles.py:59) and its tests say the same. The one exception is custom[].guide: "moved", which the contract already names unindexed.
Lead decision: the contract follows the hub. A per-entry error of PUT …/roles is keyed custom[<i>].<field>, with <i> the entry's 0-based index. custom[].guide stays as it is. This matches how the contract already names nested fields elsewhere (details.fields["policy.contract_arbiter"], ["custom[].guide"]). No hub or web change.
Scope: the §2.3 sentences on PUT …/roles (name reserved and the other per-entry errors there), plus one contract-text test if the contract tests pin these keys. A changelog fragment is not needed for a docs-only wording fix, unless the changelog check asks for one.