update schemas and create a validateHandler function

This commit is contained in:
AshwiniK-protean
2025-03-02 18:44:16 +05:30
parent 4b940d9e51
commit 4559ac3e5f
28 changed files with 3053 additions and 3552 deletions

View File

@@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "search",
"allOf": [
{ "$ref": "../core/v1.1.0/search.json#" }
{ "$ref": "../../core/v1.1.0/search.json#" }
],
"type": "object",
"properties": {
@@ -38,12 +38,10 @@
"required": ["city", "country"]
},
"bap_id": {
"type": "string",
"pattern": "^(http|https).*"
"type": "string"
},
"bpp_id": {
"type": "string",
"pattern": "^(http|https).*"
"type": "string"
},
"ttl": {
"type": "string",