You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, great package. I was using swagger but wanted something that will auto document my API so I am sure its up to date when I make changes.
I have 2 problems right now.
Problem 1:
I have a custom ApiResponse class like this:
In a document transformer you simply access 422 response instance in components (try dumping out the document to see the structure). And you just modify that response to the structure you'd need.
Hey, great package. I was using swagger but wanted something that will auto document my API so I am sure its up to date when I make changes.
I have 2 problems right now.
Problem 1:
I have a custom ApiResponse class like this:
And when i am returning data i have code like this:
In the documentation i get
{
"data": {
"access_token": "string",
"token_type": "Bearer"
}
}
It should not add 'data'.
On the other hand when I have it like this:
I get it without data
{
"email_exists": "string"
}
Is there any way to fix this?
Problem 2, all my Requests extends BaseFormRequest and it has failedValidation function but its not registered by scramble.
I am getting 422
{
"message": "string",
"errors": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}
The text was updated successfully, but these errors were encountered: