Skip non API routes

Aperta
#350 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
ruby
Ambito
api

Direzione di ricerca

The request is for an option that lets the validation middleware skip paths the OpenAPI schema does not describe, today handled by subclassing the middlewares. Read the linked discussion #228 and pull request #347 comment first to see the agreed approach. The payload names no source files, so locate the Rack middleware classes yourself. Done means a configuration option that passes unmatched routes through, with a spec covering that case. Expect a design decision before coding.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

how can we exclude the paths which are not managed by the schema from validation?

This is a question that keeps coming up. One option is of course the one you described with sub-classing the Middlewares. This should still just work. I think having an option for that would be useful, especially for beginners.

Follow-up of https://github.com/ahx/openapi_first/pull/347#issuecomment-2808730534 and https://github.com/ahx/openapi_first/discussions/228

Lingua principale
Ruby
Stelle
222
Fork
27
Merge medio
17h 15m
PR unite (30g)
6

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ahx/openapi_first

Tutte le issue di ahx/openapi_first

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.