Skip to content

Commit

Permalink
Added the new project settings and security guidelines for mosparo v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zepich committed Nov 26, 2023
1 parent 6ee48f2 commit bbb1b60
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions resources/json-schema/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,22 @@
"type": "string"
}
},
"status": {
"type": "integer"
},
"spamScore": {
"type": "number"
},
"statisticStorageLimit": {
"type": "string",
"enum": ["14D", "1M", "2M", "3M", "6M", "1Y", "2Y", "FOREVER"]
},
"apiDebugMode": {
"type": "boolean"
},
"verificationSimulationMode": {
"type": "boolean"
},
"design": {
"type": "array",
"items": {
Expand All @@ -40,6 +53,52 @@
"$ref": "http://schema.mosparo.io/setting.json#"
}
},
"securityGuidelines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": ["string", "null"]
},
"priority": {
"type": "integer"
},
"subnets": {
"type": "array",
"items": {
"type": "string"
}
},
"countryCodes": {
"type": "array",
"items": {
"type": "string"
}
},
"asNumbers": {
"type": "array",
"items": {
"type": ["string", "integer"]
}
},
"securitySettings": {
"type": "array",
"items": {
"$ref": "http://schema.mosparo.io/setting.json#"
}
}
},
"required": ["name", "priority", "securitySettings"],
"additionalProperties": false
}
},
"rules": {
"type": "array",
"items": {
Expand Down
2 changes: 1 addition & 1 deletion src/Specifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
class Specifications
{
const SPECIFICATIONS_VERSION = '3.0';
const SPECIFICATIONS_VERSION = '4.0';

const JSON_SCHEMA_PROJECT = 'project.json';
const JSON_SCHEMA_RULE = 'rule.json';
Expand Down

0 comments on commit bbb1b60

Please sign in to comment.