aspen
aspen copied to clipboard
Support strong typing of default attributes
trafficstars
From the README:
One known issue is that
defaultanddefault_attributeauto-type the attributes they're given, and try to make them either a string or number. So, if you pass a Massachusetts zip code like02111into a node in either short form or default attribute form, it will become integer2111.As a Massachusetts resident, I vowed never to let this happen in my software, so I intend to address this soon.
The default and default_attribute lines should support (or perhaps require!) types.
default:
label: PostOffice
attribute: zipcode (string)
attributes:
Shipment: tracking_number (string)