Permalink
Cannot retrieve contributors at this time
110 lines (110 sloc)
2.48 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
sonarqube/server/sonar-webserver-webapi/src/main/resources/json-schemas/security.json
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "Custom configuration schema", | |
| "description": "Schema to validate custom configuration given as input to the custom configuration properties", | |
| "definitions": { | |
| "Interval": { | |
| "type": "object", | |
| "properties": { | |
| "fromIndex": { | |
| "type": "integer" | |
| } | |
| }, | |
| "additionalProperties": false | |
| }, | |
| "CommonConfiguration": { | |
| "type": "object", | |
| "properties": { | |
| "args": { | |
| "type": "array", | |
| "items": { | |
| "type": "integer", | |
| "minimum": 0 | |
| }, | |
| "minItems": 1 | |
| }, | |
| "interval": { | |
| "$ref": "#/definitions/Interval" | |
| }, | |
| "isMethodPrefix": { | |
| "type": "boolean" | |
| }, | |
| "isShallow": { | |
| "type": "boolean" | |
| }, | |
| "isWhitelist": { | |
| "type": "boolean" | |
| }, | |
| "methodId": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "methodId" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "SanitizerOrValidator": { | |
| "allOf": [ | |
| { | |
| "$ref": "#/definitions/CommonConfiguration" | |
| } | |
| ], | |
| "required": [ | |
| "args" | |
| ] | |
| }, | |
| "RuleConfiguration": { | |
| "type": "object", | |
| "properties": { | |
| "decoders": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/CommonConfiguration" | |
| } | |
| }, | |
| "encoders": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/CommonConfiguration" | |
| } | |
| }, | |
| "passthroughs": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/CommonConfiguration" | |
| } | |
| }, | |
| "sanitizers": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/SanitizerOrValidator" | |
| } | |
| }, | |
| "validators": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/SanitizerOrValidator" | |
| } | |
| }, | |
| "sinks": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/CommonConfiguration" | |
| } | |
| }, | |
| "sources": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/CommonConfiguration" | |
| } | |
| } | |
| }, | |
| "additionalProperties": false | |
| } | |
| }, | |
| "type": "object", | |
| "additionalProperties": { | |
| "$ref": "#/definitions/RuleConfiguration" | |
| } | |
| } |