Skip to content

Commit

Permalink
fix: schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshkutty committed Feb 25, 2025
1 parent 2bb01d6 commit fc2d731
Showing 1 changed file with 69 additions and 1 deletion.
70 changes: 69 additions & 1 deletion src/configurations/destinations/moengage/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,80 @@
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["apiKey", "apiId", "region"],
"additionalProperties": false,
"required": ["apiId", "apiKey", "region"],
"properties": {
"apiKey": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"apiId": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"region": {
"type": "string",
"enum": ["US", "EU", "IND"],
"default": "US"
},
"useObjectData": {
"type": "boolean",
"default": false
},
"eventFilteringOption": {
"type": "string",
"enum": ["disable", "whitelistedEvents", "blacklistedEvents"],
"default": "disable"
},
"whitelistedEvents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"eventName": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
},
"blacklistedEvents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"eventName": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
},
"useNativeSDK": {
"type": "object",
"properties": {
"android": {
"type": "boolean"
},
"ios": {
"type": "boolean"
},
"web": {
"type": "boolean"
},
"reactnative": {
"type": "boolean"
}
}
},
"debug": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"oneTrustCookieCategories": {
"type": "object",
"properties": {
Expand Down

0 comments on commit fc2d731

Please sign in to comment.