Description and example inside array response? #723
Replies: 3 comments
-
@Shadercloud not possible now to do that in the PHPDoc 🫠 Any ideas for how it could be done? |
Beta Was this translation helpful? Give feedback.
-
I would suggest a format such as this:
So that the value from the key=>value of the array can be evalulated in detail. |
Beta Was this translation helpful? Give feedback.
-
Note that this also seems linked with this issue: #666 So one could solve it by allowing the above detailed array PHPDoc notes; or by allowing PHPDoc notes inside the map (this approach seems like it would take a lot more work though). But i guess the perfect solution would be to automatically detect variables inside |
Beta Was this translation helpful? Give feedback.
-
Is there a way to add examples and descriptions inside of an array type response? For example:
Currently it seems this is the limitation of what you can do inside an array (basically just return a type only for each field)
I'd like to be able to add
example
field for each of the nest array fields (such as an example for "name")Beta Was this translation helpful? Give feedback.
All reactions