You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A library for implementing the OpenAPI specification and ADC profile conversion.
Direction
Supported
OpenAPI to ADC
✅
ADC to OpenAPI
❎
Supported Extension Fields
Supported Levels
Root Level: on the root of the OAS document
Path Level: on each path object
Operation Level: on each HTTP method object for each path
Server Level: on each item in the servers field, supports Root, Path and Operation levels
Field
Level
Description
x-adc-name
Root Level
Override the name of the generated main service
Operation Level
Override the name of the generated route
x-adc-labels
Root Level
Add labels field to the specified level. It supports string and string array formats.
Operation Level
x-adc-plugins
Root Level
Add plugins field to the specified level. It is an object that contains one or more plugins. Plugins set at the path or operation level are attached directly to the routes generated from that path or operation; they do not by themselves cause the service to be split.
Path Level
Operation Level
x-adc-plugin-[plugin-name]
Root Level
It will be consistent with x-adc-plugins. However, those configured using this format will override plugins of the same name in x-adc-plugins.
Path Level
Operation Level
x-adc-service-defaults
Root Level
It supports setting/overriding parameters in the service at various levels. This field on sub-levels will cause the service to be split.
Path Level
Operation Level
x-adc-upstream-defaults
Root Level
It supports setting/overriding parameters in the upstream at various levels. This field on sub-levels will cause the service to be split.
Path Level
Operation Level
x-adc-upstream-node-defaults
Root Level - Server Level
It supports setting/overriding parameters in the upstream's node at various levels. The servers field on sub-levels will cause the service to be split.
It supports setting/overriding parameters in the route at various levels. Sub-level values override root-level values (operation > path > root); the merged result is applied to each route. This field does not by itself cause the service to be split.
Path Level
Operation Level
Extension Fields processing logic
x-adc-plugins and x-adc-plugin-[plugin-name]
They can be set at all three main levels, root, path, and operation.
Set both x-adc-plugins and x-adc-plugin-[plugin-name] at the same level
For plugins with non-same names, their configurations will be merged.
Input
Output
x-adc-plugins:
test-plugin1:
key: valuex-adc-plugin-test-plugin2:
key: value
plugins:
test-plugin1:
key: valuetest-plugin2:
key: value
For plugins with same names, the configurations in x-adc-plugin-[plugin-name] will override the one in x-adc-plugins.