[Question]: Is there a way to disable ServerNotFound check

Aperta
#264 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
openapi, python
Ambito
api

Direzione di ricerca

Start by tracing RequestValidator with the FlaskOpenAPIRequest and create_spec entry points shown in the issue. Check the existing documentation and tests for configuration that controls ServerNotFound validation, then establish whether body-only validation is supported and what a complete answer or change would require.

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

Descrizione

area/validation/request kind/question

i noticed that if the URL in the request is not one of the listed URLs in the Spec, the validator throws an ServerNotFound exception.

Is there any config that I can pause to the validator to disable this check?
We want to use the validator only to validate the request body.

    spec = create_spec(spec_dict)
    openapi_request = FlaskOpenAPIRequest(request)
    validator = RequestValidator(spec)
    result = validator.validate(openapi_request)
Lingua principale
Python
Stelle
368
Fork
140
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la 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 python-openapi/openapi-core

Tutte le issue di python-openapi/openapi-core

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.