Skip to content

[FEATURE] 希望通过json schema可以获取出json的默认对象,或者补全json对象 #3565

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

Open
yuyu1025 opened this issue May 19, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@yuyu1025
Copy link

请描述您的需求或者改进建议

希望通过json schema可以获取出json的默认对象,或者补全json对象

请描述你建议的实现方案

json schema是支持默认值处理的,因此通过这些字段定义+默认值是可以构建出完整的json对象

描述您考虑过的替代方案

目前考虑采用其他的库来完成这种处理

附加信息

如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。

@yuyu1025 yuyu1025 added the enhancement New feature or request label May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant