connexion icon indicating copy to clipboard operation
connexion copied to clipboard

Hide x-bearerInfoFunc from returned spec via a configuration parameter.

Open ioggstream opened this issue 6 years ago • 0 comments

Description

Connexion uses x-bearerInfoFunc to reference validating functions

Expected behaviour

A configurable app parameter for hiding this parameter from the served spec

Actual behaviour

The x-bearerInfoFunc is returned into openapi.json

Steps to reproduce

  1. use x-bearerFunc in a yaml file
  2. run connexion
  3. get the spec

curl -kv https://0.0.0.0:8443/hello/v1/openapi.json | egrep x-.*InfoFunc

Additional info:

Output of the commands:

  • python --version Python 3.6.8

  • pip show connexion | grep "^Version\:" Version: 2.2.0

ioggstream avatar Apr 18 '19 06:04 ioggstream