spec-first/connexion

RoutingMiddleware should sort paths

Open

#1.879 aberto em 13 de fev. de 2024

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Python (738 forks)batch import
PR welcomeenhancementgood first issue

Métricas do repositório

Stars
 (4.346 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador