hdk-assemblyscript icon indicating copy to clipboard operation
hdk-assemblyscript copied to clipboard

implement entry validator decorators

Open Connoropolous opened this issue 7 years ago • 1 comments

As of this core PR, validation will have a different API from proto: https://github.com/holochain/holochain-rust/pull/442

hdk-assemblyscript will need some kind of equivalent to the validations! macro being implemented for hdk-rust: https://github.com/holochain/hdk-rust/pull/15

For this, we proposed to use another function decorator, like @validate_function to simplify writing entry validation functions for developers

Connoropolous avatar Oct 08 '18 02:10 Connoropolous

Willem mentioned: "I am still envisioning having classes tagged as @entryType and validate could be a class method."

Connoropolous avatar Oct 15 '18 01:10 Connoropolous