Skip to content

Nacos yaml config file validator is not valid in console UI #10416

@ruansheng8

Description

@ruansheng8

BUG描述

从Nacos文档描述来看是有提供Yaml格式配置的校验功能, 实际测试时发现Yaml错误格式的配置无法被检测出
image

期望

期望可以正确识别出错误的格式, 并显示相关告警信息, 例如:
image

BUG复现

使用以下错误的格式(重复key)依然可以通过验证并发布, 导致程序获取时解析配置失败从而无法读取到配置.
该问题无法在业务服务解决, 因为业务服务加上了配置格式的校验会导致解析失败后无法读取到配置.

image

版本信息

Nacos server : 2.2.2

Metadata

Metadata

Assignees

Labels

dependenciesPull requests that update a dependency file

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions