holochain / hdk-assemblyscript

The Holochain Developer Kit for Assemblyscript
41 stars 2 forks source link

implement entry validator decorators #14

Open Connoropolous opened 5 years ago

Connoropolous commented 5 years ago

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 commented 5 years ago

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