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

加入外部引用和内部引用的功能 #50

Open
cmdares opened this issue Jan 27, 2020 · 3 comments
Open

加入外部引用和内部引用的功能 #50

cmdares opened this issue Jan 27, 2020 · 3 comments

Comments

@cmdares
Copy link

cmdares commented Jan 27, 2020

针对规范的讲解中,有针对引用的要求。
https://www.jianshu.com/p/ddf23d33f8a1 查看2.3 和2.4 章节。
需求:比如全国区划编码有数千个枚举,如果应用提交的json中有好几个字段项均使用这个来进行验证,我们应该使用枚举的引用方式来设计schema。希望在后续版本能够加强这个功能,感谢!
同时需要注意引发问题的一些坑点:
https://stackoverflow.com/questions/17595377/json-schema-regarding-use-of-ref
http://www.itkeyword.com/doc/9494815983831951x835/json-schema-regarding-use-of-ref
https://blog.csdn.net/zhangge3663/article/details/89213296

@liuwei0514
Copy link

https://github.com/liuwei0514/json-schema-editor-visual 我增加了加载json schema内部的definition功能

@hellosean1025
Copy link
Collaborator

@liuwei0514 可以考虑提个pr,我周末有空看看

@liuwei0514
Copy link

@liuwei0514 可以考虑提个pr,我周末有空看看

改的太多~ 提不了 代码格式化貌似也不一致。
都有commit 要不你试试~~

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