redocly-cli-cookbook
redocly-cli-cookbook copied to clipboard
Add sorting decorators (like old Redoc had)
Adds some of the sorting features that older versions of open source Redoc (v1 and v2) could apply at display time so that they can be used at any stage of the API lifecycle.
Does this also include a custom rule to specify the order expected by the linter?
I don't have a rule for the method ordering included, but I think we can add one.
I agree that it should accept a config for method order (maybe it can have a default for zero config). I can see particular people wanting to go in some specific order though which might not be alphabetical (such as DELETE last).
Yeah for us we want GET, POST, PUT, DELETE
On Thu, Aug 22, 2024 at 6:56 PM Adam Altman @.***> wrote:
I agree that it should accept a config for method order (maybe it can have a default for zero config). I can see particular people wanting to go in some specific order though which might not be alphabetical (such as DELETE last).
— Reply to this email directly, view it on GitHub https://github.com/Redocly/redocly-cli-cookbook/pull/38#issuecomment-2306035708, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKWZQ6264CWOD3P7NAFIALZS2JE3AVCNFSM6AAAAABMUK2YU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBWGAZTKNZQHA . You are receiving this because you commented.Message ID: @.***>
Shall we push this one through to completion? Seems powerful.
@adamaltman Definitely! Want to take another look? I added the extra rules we discussed.
@thesteve0 I added a method-sort rule that I hope will do what you need, let me know if you get chance to try it?