starkware-libs / starknet-specs

91 stars 74 forks source link

fix: missing/invalid `required` field #204

Open xJonathanLEI opened 5 months ago

xJonathanLEI commented 5 months ago

Fixes a long-standing issue where the absence of required is ambiguous: it could either mean all fields are optional, or that none of them are:

This makes code generation really difficult as codegen tools have to make external assumptions on what the intended behavior is.

With this PR, now all properties are always paired with a valid required field.