nette / schema

📐 Validating data structures against a given Schema.
https://doc.nette.org/schema
Other
905 stars 26 forks source link

Structure: allow to skip defaults per structure #26

Closed f3l1x closed 3 years ago

f3l1x commented 4 years ago

It allows to skip defaults only for some structures.

dg commented 3 years ago

Perhaps a very similar result can be achieved with ->required(false), what do you think? Related to #17 and 27e57b12e64

f3l1x commented 3 years ago

Thanks. Looks good. :-)

dg commented 3 years ago

But maybe not :-) I don't know exactly what your intention is.

f3l1x commented 3 years ago

I think it's ok, my intention was to disable default values for nested structure. :-)