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

apollo能配置空字符串值吗? #1882

Closed
ldcsaa opened this issue Jan 16, 2019 · 5 comments
Closed

apollo能配置空字符串值吗? #1882

ldcsaa opened this issue Jan 16, 2019 · 5 comments

Comments

@ldcsaa
Copy link

ldcsaa commented Jan 16, 2019

有些环境的配置想设置为“空字符串值”,请问apollo能实现吗?
例如:
my.conf.val=

@kezhenxu94
Copy link
Member

@ldcsaa#1841

@nobodyiam
Copy link
Member

PR 1852应该只解决了open api的问题,对于portal页面过来的可能还是不允许的

@kezhenxu94
Copy link
Member

查了下,Portal 接口并没有对 value 是否为空作限制,只是检查 value 长度有没有超过限制而已

@ldcsaa
Copy link
Author

ldcsaa commented Jan 17, 2019

查了下,Portal 接口并没有对 value 是否为空作限制,只是检查 value 长度有没有超过限制而已

不对呀,portal页面设置不了空字符串,提示 “value不能为空”,也无法提交。

@kezhenxu94
Copy link
Member

看来是前端做了校验

CrackerCat pushed a commit to CrackerCat/apollo-1 that referenced this issue Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants