Order of generated paths in OpenAPI spec #4782
Devon-White
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking to see if there is a solution to changing the order in which paths are generated in a OpenAPI spec.
Example can be found here
In the example, you will notice that any
subscriber
endpoint that has apath parameter
will create a new route appending the{id}
(as it should) - but its not adding it directly under the route that this is declared in. You will notice that its actually being generated at the very bottom.This looks like the following (take notice of where
/resources/subscribers
is and where/resources/subscribers/{id}
is):Without any intervention outside of TypeSpec, is there a way to force the generation in a way where it will respect the ordering? Otherwise it will look a bit unorganized in a swagger viewer/ when we generate our Docusaurus docs.
In my actual setup, the
sip_endpoint
endpoint is being imported from another file, like so:Beta Was this translation helpful? Give feedback.
All reactions