-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for FormArray #28
Comments
I am happy to help craft a PR for this. Can you provide me an example open-api doc and what you would expect the form to look like for this? |
Thanks a lot! It would be amazing! For this open-api doc:
Right now, the generated code is this:
But it would be expected something like this:
If you need any help for development I'll be glad to help you. Thanks a lot! |
Hey @Arberto99 , I did a bit drafting related to supporting form array and nested form group, though I'm not quite sure how we construct FormArray in this case. From your API spec:
What would be expected result here?
|
Hi @RoRep1ay ! Thanks for your answer! The result should be something like this:
What do you think about it? Thanks again anyway! |
Hi @Arberto99 , I'm OK with your proposal, though there is still one small details that we haven't discussed yet, which is related to To me, I prefer to ignore Ex:
Output:
|
Yes, I'm ok with it. |
Alright. This is really becoming clearer to me now on how this can be done. Discussion like this really does help. |
@martinmcwhorter , if you're OK with the spec now, may I take over this issue? |
Absolutely. Take a stab at it and make a PR. |
It would be nice to let Open Api Specification arrays map to the Angular FormArray.
As it makes creating forms with arrays more easier.
I would like to implement it but i'm curious if you have a specific reason why it isn't currently implemented.
The text was updated successfully, but these errors were encountered: