Skip to content

Commit

Permalink
Chore: gateway patches 06 2024 (#37)
Browse files Browse the repository at this point in the history
* schema for request validator in 3.7.1.0 and 3.6.1.5

* update schema for app reg plugin in 3.5.0.5
  • Loading branch information
lena-larionova authored Jun 21, 2024
1 parent 05be7ee commit 0939b6a
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 31 deletions.
8 changes: 8 additions & 0 deletions schemas/application-registration/3.5.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
"type": "boolean",
"description": "Displays the **Issuer URL** in the **Service Details** dialog."
}
},
{
"enable_proxy_with_consumer_credential": {
"required": true,
"description": "If enabled, the Route of the Service can be accessed using the Consumer's credential",
"type": "boolean",
"default": false
}
}
],
"type": "record",
Expand Down
8 changes: 8 additions & 0 deletions schemas/request-validator/3.6.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@
"description": "If enabled, the plugin returns more verbose and detailed validation errors.",
"default": false
}
},
{
"content_type_parameter_validation": {
"default": true,
"required": true,
"description": "Determines whether to enable parameters validation of request content-type.",
"type": "boolean"
}
}
],
"required": true
Expand Down
70 changes: 39 additions & 31 deletions schemas/request-validator/3.7.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"fields": [
{
"protocols": {
"type": "set",
"required": true,
"default": [
"grpc",
"grpcs",
"http",
"https"
],
"elements": {
"type": "string",
"one_of": [
Expand All @@ -13,21 +17,17 @@
"https"
]
},
"type": "set",
"description": "A set of strings representing HTTP protocols.",
"default": [
"grpc",
"grpcs",
"http",
"https"
]
"required": true
}
},
{
"consumer_group": {
"reference": "consumer_groups",
"type": "foreign",
"description": "Custom type for representing a foreign key with a null value allowed.",
"eq": null
"reference": "consumer_groups",
"eq": null,
"type": "foreign"
}
},
{
Expand All @@ -42,27 +42,27 @@
},
{
"allowed_content_types": {
"type": "set",
"elements": {
"required": true,
"type": "string"
},
"description": "List of allowed content types. The value can be configured with the `charset` parameter. For example, `application/json; charset=UTF-8`.",
"default": [
"application/json"
]
],
"elements": {
"type": "string",
"required": true
},
"type": "set",
"description": "List of allowed content types. The value can be configured with the `charset` parameter. For example, `application/json; charset=UTF-8`."
}
},
{
"version": {
"default": "kong",
"one_of": [
"kong",
"draft4"
],
"required": true,
"type": "string",
"description": "Which validator to use. Supported values are `kong` (default) for using Kong's own schema validator, or `draft4` for using a JSON Schema Draft 4-compliant validator.",
"default": "kong"
"required": true,
"type": "string"
}
},
{
Expand All @@ -73,13 +73,13 @@
{
"in": {
"required": true,
"type": "string",
"description": "The location of the parameter.",
"one_of": [
"query",
"header",
"path"
]
],
"type": "string"
}
},
{
Expand All @@ -99,7 +99,6 @@
{
"style": {
"type": "string",
"description": "Required when `schema` and `explode` are set. Describes how the parameter value will be deserialized depending on the type of the parameter value.",
"one_of": [
"label",
"form",
Expand All @@ -108,13 +107,14 @@
"spaceDelimited",
"pipeDelimited",
"deepObject"
]
],
"description": "Required when `schema` and `explode` are set. Describes how the parameter value will be deserialized depending on the type of the parameter value."
}
},
{
"explode": {
"type": "boolean",
"description": "Required when `schema` and `style` are set. When `explode` is `true`, parameter values of type `array` or `object` generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters, this property has no effect."
"description": "Required when `schema` and `style` are set. When `explode` is `true`, parameter values of type `array` or `object` generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters, this property has no effect.",
"type": "boolean"
}
},
{
Expand Down Expand Up @@ -143,16 +143,24 @@
],
"type": "record"
},
"type": "array",
"description": "Array of parameter validator specification. One of `body_schema` or `parameter_schema` must be specified."
"description": "Array of parameter validator specification. One of `body_schema` or `parameter_schema` must be specified.",
"type": "array"
}
},
{
"verbose_response": {
"default": false,
"required": true,
"type": "boolean",
"description": "If enabled, the plugin returns more verbose and detailed validation errors.",
"default": false
"type": "boolean"
}
},
{
"content_type_parameter_validation": {
"default": true,
"required": true,
"description": "Determines whether to enable parameters validation of request content-type.",
"type": "boolean"
}
}
],
Expand Down

0 comments on commit 0939b6a

Please sign in to comment.