Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
feat: support for optional field in presexch
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Sizov <[email protected]>
  • Loading branch information
mishasizov-SK committed May 10, 2023
1 parent bc155de commit be9593b
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 be9593b

Please sign in to comment.