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.1KB

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