-
Notifications
You must be signed in to change notification settings - Fork 937
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
Add Attachable to Response::$content and RequestBody::$content #1307
Conversation
The failing test means that |
Indeed, should be better now |
One more question before I merge - have you tried this? I suspect that no matter where you put your |
Oh, well, lets see how that goes. I might extend that a bit to other properties though, seems stange to do this only for some... |
thanks @GuilhemN |
Thank you for merging (and sorry for answering late). I was thinking of just processing both fields in NelmioApiDocBundle to retrieve our custom annotations, but thinking about more generic use cases that would probably be quite weird and the behavior would be inconsistent between annotations and attributes... And from a semantic point of view, using |
I think attachables will end up in the Hmm, I would have expected annotations would behave the same - that is what causes all nested annotations to go through the same funnel. I suppose you could subclass an explicit type and pass that into Either way, I'll leave it to you to move this forward if needed. Otherwise it would be cool to at least create a new issue to track adding typehints to all remaining properties that take nested annotations so we do not forget to do that at some point, |
To be more specific, using But this syntax isn't used in your tests or docs, so maybe we can simply consider it isn't supported. I will let you know if I come up with something that would solve this nicely. I'll create the tracker issue as well, no problem. |
Ah, I see. No, swagger-php only uses anonymous? nested annotations. I wasn't even aware that you can do this. |
Just remembered that we added |
Relates to nelmio/NelmioApiDocBundle#2023