Replies: 1 comment
-
Hey @phpsa If you're on the latest version of Scramble, this should work. Just make sure you annotate the JSON resource class with the model name: https://scramble.dedoc.co/usage/response#model-resolution Let me know if this worked for you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If my code in the JsonResource looks like:
it show
data - string
as the return body,i have tried docblocks etc but to no avail.
Can we add a doc parser to the resource / toArray method that gets read as a fallback option?
Beta Was this translation helpful? Give feedback.
All reactions