cnabio / cnab-go

A Go implementation of CNAB Core 1.0
MIT License
69 stars 35 forks source link

Do not validate unspecified optional paramters #262

Closed carolynvs closed 3 years ago

carolynvs commented 3 years ago

This corrects a bug found in v0.20.0 where an optional parameter with no default set causes a validation error when the user does not specify the parameter. The error was:

invalid parameters: cannot use value: <nil> as parameter myparm: type should be string, got null