Closed Gama11 closed 5 years ago
import json2object.utils.JsonSchemaWriter; class Main { static function main() { trace(new JsonSchemaWriter<Config>("\t").schema); } } typedef Config = { /** stuff **/ var foo:String; }
"foo": { "description": "", "type": "string" }
If the doc comment is made multi-line, it works as expected:
typedef Config = { /** stuff **/ var foo:String; }
"foo": { "description": "stuff", "type": "string" }
If the doc comment is made multi-line, it works as expected: