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

Release里的schema.json文件怎么使用? #11498

Open
wubin1989 opened this issue Jan 13, 2025 · 3 comments
Open

Release里的schema.json文件怎么使用? #11498

wubin1989 opened this issue Jan 13, 2025 · 3 comments

Comments

@wubin1989
Copy link

请问Release里的schema.json文件怎么使用?
image

@ranwawa
Copy link
Contributor

ranwawa commented Jan 15, 2025

schema.json是指JSON Schema。JSON Schema 是一种用于验证 JSON 数据结构的标准化描述语言。

可以用来进行检验json是否符合标准,也可以用来进行json语法高亮提示。

比如在vscode的json代码中指定$schema属性,则可以进行语法提示

image

amis官方文档中编辑代码里面的语法提示也是通过schema.json实现的

image

@wubin1989
Copy link
Author

@ranwawa 谢谢!怎么在工程里引入?在代码里什么地方使用?

@ranwawa
Copy link
Contributor

ranwawa commented Jan 21, 2025

@ranwawa 谢谢!怎么在工程里引入?在代码里什么地方使用?

你不知道在什么地方用,说明你目前还没有应用场景。。。应用开发者一般也用不到这个东西。

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

2 participants