collective-soundworks / soundworks

Creative coding framework for distributed applications based on Web technologies.
http://soundworks.dev
BSD 3-Clause "New" or "Revised" License
114 stars 7 forks source link

State Definition - introduce `required` option #95

Closed b-ma closed 1 month ago

b-ma commented 3 months ago

A parameter that must be defined when creating the state, e.g.

{
   uuid: {
     type: 'string',
     required: true,
   },
}

Throw error if not given in init values

jipodine commented 3 months ago

Good to have.

Should we also throw an error if the definition contains a default attribute?

b-ma commented 1 month ago

release in v4.0.0-alpha.29