Skip to content

Q: is it possible to define some global variables? #60

@yurenchen000

Description

@yurenchen000

I use swagger ui before.
I found oax today, it's awsome!!

I always want to define some global variable,
so I can use them at anyway in openapi.yml.

like the variable used in bash or javascript string:

var1='abc123'
str1=`hello ${var1}`

original openapi spec seem not support this,
extensions or some hack can do it easily?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions