brettviren / moo

ruminants on module oriented programming
GNU General Public License v3.0
4 stars 4 forks source link

Missing template support for `boolean` schema class #7

Closed brettviren closed 3 years ago

brettviren commented 3 years ago

@glehmannmiotto finds that a moo render on a schema with a boolean fails with

no attribute 'declare_boolean'

The support is missing in ocpp.hpp.j2 eg as called from ostructs.hpp.j2

brettviren commented 3 years ago

Used wrong issue number in commit, so closing this manually. Fixed in https://github.com/brettviren/moo/commit/e0462965c1181371b1640edfab3d623df16e4004

brettviren commented 3 years ago

Also, see new test covering this issue https://github.com/brettviren/moo/blob/master/test/test-template-types.bats