sunmao-ui
sunmao-ui copied to clipboard
How to define modules' property and event spec in editor?
ModuleSpec also have property and event. But module is created in editor, so developers can't define property spec by coding like what they do for components and traits. Editor lacks the ability to compose a type definition.
Fortunately, module property still can work without definition. But I think it remains a problem.
This is a json schema editor. https://hellosean1025.github.io/json-schema-visual-editor/
This library can convert a JSON to JSON Schema. https://github.com/quicktype/quicktype
Completed.