From 531f67bb7b6292e9b2593601de04a2826ce79290 Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 4 Jul 2023 09:48:15 +0200 Subject: [PATCH] feat: addition of execution phase related-to APIM-2140 --- src/main/resources/plugin.properties | 1 + src/main/resources/schemas/schema-form.json | 63 +++++++++++++++++++-- 2 files changed, 58 insertions(+), 6 deletions(-) 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": "" + "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.