vs 使用 jsonschema

使用json schema限制json配置文件内容

vs配置文件中,添加\(schema,映射对应的json文件,此文件可以根据现有json文件通过工具生成基础的内容 "\)schema": "http://127.0.0.1/webapibase.json",

json schema文档
https://json-schema.apifox.cn/

工具
https://hellosean1025.github.io/json-schema-visual-editor/

缓存问题
如果更新了json后需要刷新缓存,将此路径下文件删除即可

posted @ 2023-12-26 17:47  Hey,Coder!  阅读(9)  评论(0编辑  收藏  举报