cnabio / cnab-go

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

Change DefaultSchemaVersion to not return an error #274

Closed carolynvs closed 2 years ago

carolynvs commented 2 years ago

There isn't really a need to force people to handle (or ignore) an error from DefaultSchemaVersion. The default schema is hard coded and with tests and buildtime asserts, we know that it was set to a valid value.

We were already throwing a panic or ignoring the error anyway at runtime, so this is more of an assurance actually than what we had before.