membphis opened a new issue #2223:
URL: https://github.com/apache/apisix/issues/2223


   That is the correct one:
   
   ```lua
   local schema = {
       type = "object",
       oneOf = {
           {
               title = "work with consumer object",
               properties = {
                   username = { type = "string" },
                   password = { type = "string" },
               },
               required = {"username", "password"},
               additionalProperties = false,
           },
           {
               title = "work with route or service object",
               properties = {},
               additionalProperties = false,
           }
       }
   }
   ```


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to