The bundle currently supports forms as input, should we support it in 3.0?
It's sooooo convenient using Form as input, which avoid long doc and duplication.
I'm not using forms very much. Porting https://github.com/nelmio/NelmioApiDocBundle/blob/master/Parser/FormTypeParser.php should be enough but I can't be sure of that, so if someone is willing to make a PR, please do it :)
I'm willing to make the PR but I'm unsure of how to implement: I should add a type in the ModelDescriber?
@magnetik yes, I think that's the way to go, probably with return Type::BUILTIN_TYPE_OBJECT === $model->getType()->getBuiltinType() && FormInterface::class === $model->getType()->getBuiltinType()->getClassName(); in the supports method.
Yeah that's what I started.
I started on https://github.com/magnetik/NelmioApiDocBundle/tree/form I'll do a pull request when something is working :)
Great, thanks :)
Most helpful comment
It's sooooo convenient using Form as input, which avoid long doc and duplication.