Skip to content

Instantly share code, notes, and snippets.

@dtkav
Created November 5, 2018 17:23
Show Gist options
  • Save dtkav/1ffdc1cd5892e7b33ad667ec0d30a3a9 to your computer and use it in GitHub Desktop.
Save dtkav/1ffdc1cd5892e7b33ad667ec0d30a3a9 to your computer and use it in GitHub Desktop.
Connexion spec->json example
import json
from connexion.apis.abstract import Specification
spec = Specification.from_spec("swagger.yml")
json.dumps(spec.raw)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment