Skip to content

Commit

Permalink
feat: support for optional field in presexch (hyperledger-archives#3582)
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Sizov <[email protected]>
  • Loading branch information
mishasizov-SK authored May 10, 2023
1 parent bc155de commit a652ea8
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion pkg/doc/presexch/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,24 @@ const DefinitionJSONSchemaV1 = `
"not":{
"type":"object",
"minProperties":1
}
},
"contains":{
"type":"object",
"properties":{
"type":{
"type":"string"
},
"pattern":{
"type":"string"
},
"const":{
"type":"string"
}
},
"required":[
"type"
]
}
},
"required":[
"type"
Expand Down Expand Up @@ -390,6 +407,9 @@ const DefinitionJSONSchemaV1 = `
},
"filter":{
"$ref":"#/definitions/filter"
},
"optional":{
"type":"boolean"
}
},
"required":[
Expand Down

0 comments on commit a652ea8

Please sign in to comment.