什么是内容类型 application/schema+json?
what is content type application/schema+json?
通常我们在邮递员中设置内容,如application/json
。
what is the meaning of application/schema+json
in content type, is it a way to
send multiple type of content?.
如果有人发送类似 application/json+schema
的内容类型,它会起作用吗?
如果你有一个 JSON 模式(描述 JSON 的东西)而不是它有 application/schema+json 内容(媒体)类型。
一句话 - JSON 模式是描述您的 JSON 的文档(也是 JSON 格式)。与 XML 的 XSD 非常相似。
您可以阅读规范 here
What is the meaning of application/schema+json
?
application/schema+json
是 JSON Schema. As of February 2020, it is not registered in IANA. However, there's a draft 建议注册的媒体类型:
This document proposes a new media type application/schema+json
to identify a JSON Schema for describing JSON data. [...]
媒体类型(以前称为MIME类型)是在Internet上传输的文件格式和格式内容的标识符,由类型和组成子类型 并且可以选择定义 后缀 和 参数 。后缀旨在指定该媒体类型的基础结构。
在application/schema+json
中,后缀是+json
,表示该媒体类型的底层结构是JSON文档。
Will it work if anyone send content type like application/json+schema
?
我不知道 application/json+schema
的存在。
正确的媒体类型是 application/schema+json
。
通常我们在邮递员中设置内容,如application/json
。
what is the meaning of
application/schema+json
in content type, is it a way to send multiple type of content?.
如果有人发送类似 application/json+schema
的内容类型,它会起作用吗?
如果你有一个 JSON 模式(描述 JSON 的东西)而不是它有 application/schema+json 内容(媒体)类型。
一句话 - JSON 模式是描述您的 JSON 的文档(也是 JSON 格式)。与 XML 的 XSD 非常相似。
您可以阅读规范 here
What is the meaning of
application/schema+json
?
application/schema+json
是 JSON Schema. As of February 2020, it is not registered in IANA. However, there's a draft 建议注册的媒体类型:
This document proposes a new media type
application/schema+json
to identify a JSON Schema for describing JSON data. [...]
媒体类型(以前称为MIME类型)是在Internet上传输的文件格式和格式内容的标识符,由类型和组成子类型 并且可以选择定义 后缀 和 参数 。后缀旨在指定该媒体类型的基础结构。
在application/schema+json
中,后缀是+json
,表示该媒体类型的底层结构是JSON文档。
Will it work if anyone send content type like
application/json+schema
?
我不知道 application/json+schema
的存在。
正确的媒体类型是 application/schema+json
。