Open xaviergxf opened 5 years ago
Is it possible to create formgroups from the definitions?
For example: definitions": { "Article": { "allOf": [ { "$ref": "#/definitions/BaseEntity" }, { "type": "object", "additionalProperties": false, "required": [ "date" ], "properties": { "title": { "type": "string" }, "body": { "type": "string" } } }
To
new FormGroup({ "title": new FormControl(''), "body": new FormControl('') ... });
Or just having a file with the model metadata extracted infos?
Thanks
@xaviergxf I suggest you to directly parse the .yml file in the frontend and use the information
.yml
Is it possible to create formgroups from the definitions?
For example: definitions": { "Article": { "allOf": [ { "$ref": "#/definitions/BaseEntity" }, { "type": "object", "additionalProperties": false, "required": [ "date" ], "properties": { "title": { "type": "string" },
"body": { "type": "string" } } }
To
new FormGroup({ "title": new FormControl(''), "body": new FormControl('') ... });
Or just having a file with the model metadata extracted infos?
Thanks