juzhiyuan commented on code in PR #7520:
URL: https://github.com/apache/apisix/pull/7520#discussion_r933034069


##########
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:
   Yes, I prefer keeping `Required` fields in the top :) 



-- 
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]

Reply via email to