carsongross/Goson — Issue #4: Cannot import custom enum types
Author: coryfoo
Created: 2012-01-05 00:19:06+00:00
State: open

Given a jschema type defined like so:

{
"typedefs@" : {
"ModuleMode" : { "enum" : [ "foo", "bar" ] }
},

"Modules" : [
{
"mode" : "ModuleMode",
"path" : "string"
}
]
}

I would like to be able to import the Module type, so that I can pass each Module object in the list on to other functions/classes.