Skip to content

Commit

Permalink
fix: Open-Attestation#68 - allow extra properties for v2 issuers
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebulis committed Jan 14, 2020
1 parent da404ed commit 65eedbf
Show file tree
Hide file tree
Showing 4 changed files with 543 additions and 171 deletions.
36 changes: 33 additions & 3 deletions src/schema/2.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@
"identityProof": { "$ref": "#/definitions/identityProof" }
},
"required": ["name", "documentStore", "identityProof"],
"additionalProperties": false
"not": {
"anyOf": [
{
"required": ["certificateStore"]
},
{
"required": ["tokenRegistry"]
}
]
},
"additionalProperties": true
},
"certificateStore": {
"type": "object",
Expand All @@ -50,7 +60,17 @@
}
},
"required": ["name", "certificateStore"],
"additionalProperties": false
"not": {
"anyOf": [
{
"required": ["documentStore"]
},
{
"required": ["tokenRegistry"]
}
]
},
"additionalProperties": true
},
"tokenRegistry": {
"type": "object",
Expand All @@ -67,7 +87,17 @@
"identityProof": { "$ref": "#/definitions/identityProof" }
},
"required": ["name", "tokenRegistry", "identityProof"],
"additionalProperties": false
"not": {
"anyOf": [
{
"required": ["documentStore"]
},
{
"required": ["certificateStore"]
}
]
},
"additionalProperties": true
}
},
"type": "object",
Expand Down
Loading

0 comments on commit 65eedbf

Please sign in to comment.