add ordering paramter to openApiPaginator#564
add ordering paramter to openApiPaginator#564MasaKni wants to merge 3 commits intocnizzardini:masterfrom
Conversation
|
@MasaKni can you provide a description for this and also please respond to the many comments I've made in your other PR #563 before I close it out. It's enough of a pain in the ass being a maintainer, so respond to comments when I make them. I have a shit ton of fucking packages I maintain and this is fucking time consuming. |
I did resolve them... It just took me time because i am also working on other projects. |
|
@MasaKni take a look at that merge conflict. Once that is resolved I'll pull this branch down for testing. |
resolved |
|
@MasaKni I see this in Swagger when I pull in this branch. This doesn't appear to work. Are there additional instructions to follow? Maybe focus on getting this working in https://editor.swagger.io/ where it also looks like the screenshot below. Won't merge this as-is. |
|
it does look like this when you don't hit the try it out button |
What an ugly UI. I guess thats how they decided to do it... Does this support an array of objects then for sorting or can you provide an example of sorting multiple things? |
Actually this stopped working because there has been some update in the swagger library recently, not sure which one caused this. It would build the url with the query not encoded and cause a problem because now we can't pass multiple elements in the array as it would only catch the last element. |

adding the possibility to order by array of fields, current behaviour adds sorting in one param
'#/x-swagger-bake/components/parameters/paginatorSort,this creates an array of objects with

{ "field": "name", "dir": "asc" }