-
Bug
-
Resolution: Duplicate
-
Major
-
fuse-7.6-GA
-
None
OpenAPI 3.x is able to use variables in server URLs as described in the OpenAPI specification.
{
"servers": [
{
"url": "https://{username}.gigantic-server.com:{port}/{basePath}",
"description": "The production API server",
"variables": {
"username": {
"default": "demo",
"description": "this value is assigned by the service provider, in this example `gigantic-server.com`"
},
"port": {
"enum": [
"8443",
"443"
],
"default": "8443"
},
"basePath": {
"default": "v2"
}
}
}
]
}
The Camel REST openapi components need to resolve these variables in server URLs. Especially the openapi-restdsl-generator component when extracting the base path from server URLs (something like
{scheme}://{host}/{basePath}
is also possible).
- causes
-
ENTESB-12736 Servers field cannot be used in OpenAPi specification
-
- Done
-