govitia / navitia

A client library in Go for the Navitia API (navitia.io) (v2 WIP)
The Unlicense
6 stars 2 forks source link

types: Add validation to all types #11

Open aabizri opened 7 years ago

aabizri commented 7 years ago

The problem

Currently, the types don't have proper validation, notably just after parsing.

A solution

Add a .Check method to all types, calling included types' .Check methods.