juzhiyuan commented on code in PR #7520:
URL: https://github.com/apache/apisix/pull/7520#discussion_r932926195
##########
docs/en/latest/plugins/consumer-restriction.md:
##########
@@ -33,14 +32,14 @@ The `consumer-restriction` Plugin allows users to set
access restrictions based
## Attributes
-| Name | Type | Required | Default | Valid values
|
Description |
-|--------------------|---------------|----------|---------------|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
-| type | string | False | consumer_name |
["consumer_name", "service_id", "route_id"]
| Type of object to base the restriction on.
|
-| whitelist | array[string] | True | |
|
List of objects to whitelist. Has a higher priority than `allowed_by_methods`. |
-| blacklist | array[string] | True | |
|
List of objects to blacklist. Has a higher priority than `whitelist`. |
-| rejected_code | integer | False | 403 | [200,...]
|
HTTP status code returned when the request is rejected. |
-| rejected_msg | string | False | |
|
Message returned when the request is rejected. |
-| allowed_by_methods | array[object] | False | | ["GET",
"POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE",
"PURGE"] | List of allowed HTTP methods for a Consumer.
|
+| Name | Type | Required | Default | Valid values
| Description |
+|--------------------|---------------|----------|---------------|---------------|-------------|
+| type | string | False | consumer_name |
["consumer_name", "service_id", "route_id"] | Type of object to base the
restriction on. |
+| allowed_by_methods | array[object] | False | | ["GET",
"POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE",
"PURGE"] | List of allowed HTTP methods for a Consumer. |
Review Comment:
But the `required` fields are moved down, right? Developers may ignore those
`required` fields IMO.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]