Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持按照 Wasm 插件的 OAS3 配置数据模型生成对应的配置页面 #219

Open
CH3CHO opened this issue May 22, 2023 · 0 comments
Labels
enhancement New feature or request frontend help wanted Extra attention is needed level/challenge

Comments

@CH3CHO
Copy link
Collaborator

CH3CHO commented May 22, 2023

Why do you need it?

目前在 Higress Console 上,用户只能以 YAML 格式来管理各个插件的配置(如下图所示)。这样就要求用户对插件的配置字段有充分的了解,并且掌握 YAML 格式的编写方法。

image

按照《Wasm 插件镜像规范》,每一个 Wasm 插件的镜像中都应该包含一个描述插件自身配置模型的元数据文件。这些配置模型使用 OpenAPI Specification - Version 3 进行编写,描述了字段的名称、类型、取值要求等信息。基于这些信息,我们可以自动生成出相应的配置界面,并配上对应的字段验证规则。

How could it be?

针对 Wasm 插件的配置模型,生成出相应的配置界面,配上对应的字段验证规则,展示在插件配置界面上。

如果 API 返回的配置模型为 null 或直接返回了 404 错误,则标识该插件没有对应的元数据信息。界面仍继续提供基于 YAML 的配置方法。

Other related information

@CH3CHO CH3CHO added enhancement New feature or request help wanted Extra attention is needed frontend level/challenge labels May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend help wanted Extra attention is needed level/challenge
Projects
None yet
Development

No branches or pull requests

1 participant