ovac/idoc

Parser ignoring responses

sheinfeld opened this issue · 13 comments

Good afternoon, first of all let me thank you for this amazing package!

I am trying to add the responses to the documentation, but once generated I only get the default 200 and nothing else.

/** * @response 200 { * "status": "success", * "message": "Your request was successfully created" * } * * @response 500 { * "status": "error", * "message": ["Custom error message"] * } */

Do I need to add/change anything?

I have the same problem, I take material from the documentation, but any responses other than 200 are not displayed

@RodionovSlsUp I just managed to fix some of it, you'll now be able to render multiple responses: sheinfeld/idoc

My next step will be to render the response data parameters like the body ones: https://i.imgur.com/BGQRj3K.png

Stay tuned

Also just updated the core JS library to it's latest version, looks way better!

Снимок экрана 2021-03-30 в 23 10 51

@sheinfeld in fact, I did about the same thing myself :)

There are very few response fields, it's true

@sheinfeld
Thomas, tell me, is it possible to use your fork through the composer?
And also, is there an understanding, in terms of time, when it will be possible to make the response fields?

Thank you very much, you are cool

@sheinfeld
Thank you very much, if it's not difficult to call me, mark or write to the mail v.rodionov@sls-up.ru

@sheinfeld by the way, your 500 error is marked as a success. I have not figured out how to elegantly solve this problem and moved the blanks with an error to the config. And I draw the name according to the code from the config.You can see examples in the screenshot

@RodionovSlsUp I'm looking at it now :D

@RodionovSlsUp just commit into my forked rep a solution!

I am working on this now:

image

@ovac will this be merged back into your repo? Thanks for the hard work btw.. idoc is appreciated very much over here!

BTW, this issue is blocking the phpunit tests driven by hotmeteor/spectator.. if that would work its a great combination.
Ofcourse I can check out @sheinfeld 's repo, but I prefer the composer approach , so I'd rather not.

ovac commented

@ronaldwanink, Thank you very much for your kind comment. I will be merging the feature with the next release. I however will want all tests to run successfully though.