You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

security.json 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. "title": "Custom configuration schema",
  3. "description": "Schema to validate custom configuration given as input to the custom configuration properties",
  4. "definitions": {
  5. "Interval": {
  6. "type": "object",
  7. "properties": {
  8. "fromIndex": {
  9. "type": "integer"
  10. }
  11. },
  12. "additionalProperties": false
  13. },
  14. "CommonConfiguration": {
  15. "type": "object",
  16. "properties": {
  17. "args": {
  18. "type": "array",
  19. "items": {
  20. "type": "integer",
  21. "minimum": 0
  22. },
  23. "minItems": 1
  24. },
  25. "interval": {
  26. "$ref": "#/definitions/Interval"
  27. },
  28. "isMethodPrefix": {
  29. "type": "boolean"
  30. },
  31. "isShallow": {
  32. "type": "boolean"
  33. },
  34. "isWhitelist": {
  35. "type": "boolean"
  36. },
  37. "methodId": {
  38. "type": "string"
  39. }
  40. },
  41. "required": [
  42. "methodId"
  43. ],
  44. "additionalProperties": false
  45. },
  46. "SanitizerOrValidator": {
  47. "allOf": [
  48. {
  49. "$ref": "#/definitions/CommonConfiguration"
  50. }
  51. ],
  52. "required": [
  53. "args"
  54. ]
  55. },
  56. "RuleConfiguration": {
  57. "type": "object",
  58. "properties": {
  59. "decoders": {
  60. "type": "array",
  61. "items": {
  62. "$ref": "#/definitions/CommonConfiguration"
  63. }
  64. },
  65. "encoders": {
  66. "type": "array",
  67. "items": {
  68. "$ref": "#/definitions/CommonConfiguration"
  69. }
  70. },
  71. "passthroughs": {
  72. "type": "array",
  73. "items": {
  74. "$ref": "#/definitions/CommonConfiguration"
  75. }
  76. },
  77. "sanitizers": {
  78. "type": "array",
  79. "items": {
  80. "$ref": "#/definitions/SanitizerOrValidator"
  81. }
  82. },
  83. "validators": {
  84. "type": "array",
  85. "items": {
  86. "$ref": "#/definitions/SanitizerOrValidator"
  87. }
  88. },
  89. "sinks": {
  90. "type": "array",
  91. "items": {
  92. "$ref": "#/definitions/CommonConfiguration"
  93. }
  94. },
  95. "sources": {
  96. "type": "array",
  97. "items": {
  98. "$ref": "#/definitions/CommonConfiguration"
  99. }
  100. }
  101. },
  102. "additionalProperties": false
  103. }
  104. },
  105. "type": "object",
  106. "additionalProperties": {
  107. "$ref": "#/definitions/RuleConfiguration"
  108. }
  109. }