spec-first/connexion

RoutingMiddleware should sort paths

Open

#1879 aperta il 13 feb 2024

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (738 fork)batch import
PR welcomeenhancementgood first issue

Metriche repository

Star
 (4346 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Connexion middleware sorts all available APIs from most specific to least because of starlettte's routing behavior https://github.com/spec-first/connexion/blob/5d7eb0bdab9ed404e1d294dac6ed951af3be7952/connexion/middleware/main.py#L334

Similar sorting algorithms should be done within an api's routes in the RoutingMiddleware

Guida contributor