OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.65k stars 6.54k forks source link

Create typescript-angular forms #2152

Open xaviergxf opened 5 years ago

xaviergxf commented 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

macjohnny commented 5 years ago

@xaviergxf I suggest you to directly parse the .yml file in the frontend and use the information