diff --git a/src/main/resources/plugin.properties b/src/main/resources/plugin.properties
index 7464822..a740974 100644
--- a/src/main/resources/plugin.properties
+++ b/src/main/resources/plugin.properties
@@ -6,3 +6,4 @@ class=io.gravitee.policy.requestvalidation.RequestValidationPolicy
type=policy
category=others
icon=request-validation.svg
+proxy=REQUEST
\ No newline at end of file
diff --git a/src/main/resources/schemas/schema-form.json b/src/main/resources/schemas/schema-form.json
index 6d005d7..97b7737 100644
--- a/src/main/resources/schemas/schema-form.json
+++ b/src/main/resources/schemas/schema-form.json
@@ -118,9 +118,54 @@
}
},
"gioConfig": {
- "banner": {
- "title": "HTTP Status Code send to the consumer in case of validation issues.",
- "text": "
- 100 - CONTINUE
- 101 - SWITCHING_PROTOCOLS
- 102 - PROCESSING
- 200 - OK
- 201 - CREATED
- 202 - ACCEPTED
- 203 - NON_AUTHORITATIVE_INFORMATION
- 204 - NO_CONTENT
- 205 - RESET_CONTENT
- 206 - PARTIAL_CONTENT
- 207 - MULTI_STATUS
- 300 - MULTIPLE_CHOICES
- 301 - MOVED_PERMANENTLY
- 302 - FOUND OR MOVED_TEMPORARILY
- 303 - SEE_OTHER
- 304 - NOT_MODIFIED
- 305 - USE_PROXY
- 307 - TEMPORARY_REDIRECT
- 400 - BAD_REQUEST
- 401 - UNAUTHORIZED
- 402 - PAYMENT_REQUIRED
- 403 - FORBIDDEN
- 404 - NOT_FOUND
- 405 - METHOD_NOT_ALLOWED
- 406 - NOT_ACCEPTABLE
- 407 - PROXY_AUTHENTICATION_REQUIRED
- 408 - REQUEST_TIMEOUT
- 409 - CONFLICT
- 410 - GONE
- 411 - LENGTH_REQUIRED
- 412 - PRECONDITION_FAILED
- 413 - REQUEST_ENTITY_TOO_LARGE
- 414 - REQUEST_URI_TOO_LONG
- 415 - UNSUPPORTED_MEDIA_TYPE
- 416 - REQUESTED_RANGE_NOT_SATISFIABLE
- 417 - EXPECTATION_FAILED
- 422 - UNPROCESSABLE_ENTITY
- 423 - LOCKED
- 424 - FAILED_DEPENDENCY
- 429 - TOO_MANY_REQUESTS
- 500 - INTERNAL_SERVER_ERROR
- 501 - NOT_IMPLEMENTED
- 502 - BAD_GATEWAY
- 503 - SERVICE_UNAVAILABLE
- 504 - GATEWAY_TIMEOUT
- 505 - HTTP_VERSION_NOT_SUPPORTED
- 507 - INSUFFICIENT_STORAG
"
+ "enumLabelMap": {
+ "100": "100 - CONTINUE",
+ "101": "101 - SWITCHING_PROTOCOLS",
+ "102": "102 - PROCESSING",
+ "200": "200 - OK",
+ "201": "201 - CREATED",
+ "202": "202 - ACCEPTED",
+ "203": "203 - NON_AUTHORITATIVE_INFORMATION",
+ "204": "204 - NO_CONTENT",
+ "205": "205 - RESET_CONTENT",
+ "206": "206 - PARTIAL_CONTENT",
+ "207": "207 - MULTI_STATUS",
+ "300": "300 - MULTIPLE_CHOICES",
+ "301": "301 - MOVED_PERMANENTLY",
+ "302": "302 - FOUND OR MOVED_TEMPORARILY",
+ "303": "303 - SEE_OTHER",
+ "304": "304 - NOT_MODIFIED",
+ "305": "305 - USE_PROXY",
+ "307": "307 - TEMPORARY_REDIRECT",
+ "400": "400 - BAD_REQUEST",
+ "401": "401 - UNAUTHORIZED",
+ "402": "402 - PAYMENT_REQUIRED",
+ "403": "403 - FORBIDDEN",
+ "404": "404 - NOT_FOUND",
+ "405": "405 - METHOD_NOT_ALLOWED",
+ "406": "406 - NOT_ACCEPTABLE",
+ "407": "407 - PROXY_AUTHENTICATION_REQUIRED",
+ "408": "408 - REQUEST_TIMEOUT",
+ "409": "409 - CONFLICT",
+ "410": "410 - GONE",
+ "411": "411 - LENGTH_REQUIRED",
+ "412": "412 - PRECONDITION_FAILED",
+ "413": "413 - REQUEST_ENTITY_TOO_LARGE",
+ "414": "414 - REQUEST_URI_TOO_LONG",
+ "415": "415 - UNSUPPORTED_MEDIA_TYPE",
+ "416": "416 - REQUESTED_RANGE_NOT_SATISFIABLE",
+ "417": "417 - EXPECTATION_FAILED",
+ "422": "422 - UNPROCESSABLE_ENTITY",
+ "423": "423 - LOCKED",
+ "424": "424 - FAILED_DEPENDENCY",
+ "429": "429 - TOO_MANY_REQUESTS",
+ "500": "500 - INTERNAL_SERVER_ERROR",
+ "501": "501 - NOT_IMPLEMENTED",
+ "502": "502 - BAD_GATEWAY",
+ "503": "503 - SERVICE_UNAVAILABLE",
+ "504": "504 - GATEWAY_TIMEOUT",
+ "505": "505 - HTTP_VERSION_NOT_SUPPORTED",
+ "507": "507 - INSUFFICIENT_STORAGE"
}
}
},
@@ -169,9 +214,15 @@
}
},
"gioConfig": {
- "banner": {
- "title": "Type",
- "text": "The constraint rule to apply to the field value.- NOT_NULL: Field value is required
- MIN: Field number value is greater or equals than parameter
- MAX: Field number value is lower or equals than parameter
- MAIL: Field value is a valid email
- PATTERN: Field value is valid according to the pattern parameter
- DATE: Field value is valid according to the date format parameter
- SIZE: Field value length is between min and max parameters
- ENUM: Field value included in ENUM
"
+ "enumLabelMap": {
+ "NOT_NULL": "NOT_NULL: Field value is required",
+ "MIN": "MIN: Field number value is greater or equals than parameter",
+ "MAX": "MAX: Field number value is lower or equals than parameter",
+ "MAIL": "MAIL: Field value is a valid email",
+ "PATTERN": "PATTERN: Field value is valid according to the pattern parameter",
+ "DATE": "DATE: Field value is valid according to the date format parameter",
+ "SIZE": "Field value length is between min and max parameters",
+ "ENUM": "ENUM: Field value included in ENUM"
}
}
},