您没有在根定义级别为“可识别”类型的对象定义架构:
{
...
"definitions": {
...
"identifiable": {
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://api.sprint.com/schema/identifiable#",
"title": "Identifiable Schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "READ ONLY. The id of the resource."
}
},
"required": [
"id"
],
"additionalProperties": true
...
}
...
}
但是您在“订阅”类型的对象的定义中定义了它。因此,您在方案中的参考指向:
[root]/definitions/identifiable
但你有它:
[root]/definitions/subscriptions/definitions/identifiable
请修复您的参考。顺便说一句,这两个站点都将您的架构标记为无效。