Missing of
keyword in protocol action rules leads to confusing error
#507
Labels
of
keyword in protocol action rules leads to confusing error
#507
Background:
When a protocol definition has a
recipient
orauthor
rule, theof
keyword is required. But the error that the JSON schema throws is difficult for people to understand./descriptor/definition/structure/album/$actions/0/who: must be equal to one of the allowed values
Task
We should either alter the JSON schema to throw a friendlier message, or add validation in plain javascript.
JSON Schema: https://github.com/TBD54566975/dwn-sdk-js/blob/main/json-schemas/interface-methods/protocol-rule-set.json#L24-L74
Protocol Definition javascript validation: https://github.com/TBD54566975/dwn-sdk-js/blob/main/src/interfaces/protocols-configure.ts#L44
Picking Up This Issue:
Questions:
#hack-together
channel and collaborate with a buddy.#getting-started
channel.Resources:
Remember, communication is key! If you have any questions or face any challenges, we're here to help so please don't hesitate to reach out.
Good Luck! 🍁
The text was updated successfully, but these errors were encountered: