tzssangglass commented on issue #4293:
URL: https://github.com/apache/apisix/issues/4293#issuecomment-847057950


   I initially designed the schema
   ```
       api_endpoint = {required = true, type = "url", default = 
"https://api.moesif.net"}, --URL for the Moesif API.
       timeout = {type = "integer", minimum = 1, default = 3}, 
       keepalive = {type = "integer", minimum = 1, default = 5},
       api_version = {default = "1.0", type = "string"},
       application_id = {required = true, default ="", type="string"}, --The 
Moesif application token provided to you by Moesif.
   
       request_body_masks = {default = {}, type = "array"}, --An array of 
request body fields to mask.
       request_header_masks = {default = {}, type = "array"},  
       request_query_masks = {default = {}, type = "array"},
       response_masks = {default = {}, type = "array"},
       response_body_masks = {default = {}, type = "array"},
       response_header_masks = {default = {}, type = "array"},
   
       batch_max_size = {type = "integer", minimum = 0, default = 1000}, 
       max_retry_count = {type = "integer", minimum = 0, default = 0},
       retry_delay = {type = "integer", minimum = 0, default = 1},
       buffer_duration = {type = "integer", minimum = 1, default = 60},
       inactive_timeout = {type = "integer", minimum = 1, default = 3},
       include_req_body = {type = "boolean", default = false},
       include_resp_body = {type = "boolean", default = false},
      
       -- Identifying users and companies
       user_id_header = {default = "", type = "string"},  --Request or response 
header to use for identifying the User.
       authorization_header_name = {default = "authorization", type = "string"},
       authorization_user_id_field = {default = "sub", type = "string"},
       company_id_header = {default = "", type = "string"},
   ```
   about Identifying users and companies I haven't figured out if I should put 
in consumer_schema.
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to