cortex35 opened a new issue, #2973:
URL: https://github.com/apache/apisix-dashboard/issues/2973

   ### Issue description
   
   Hello, 
   
   I try to use this exemple : 
   
https://apisix.apache.org/docs/dashboard/2.8/IMPORT_OPENAPI_USER_GUIDE/#configure-a-route-with-parameters-validation
   
   I put this yaml in a file and import it with apisix-dashboard ( Menu Route 
-> Advanced -> import ). 
   
   The result does not add request-validation plugin with info, is this 
functionnality is deprecated or abandonned ?
   
   Thanks
   
   ### Expected behavior
   
   Route add contain request-validation plugin 
   Exemple : 
   ```
   
   uri: /hello
   name: hello
   methods:
     - POST
   plugins:
     request-validation:
       body_schema:
         properties:
           name:
             type: string
           status:
             type: string
         rejected_msg: customize reject message
         required:
           - status
         type: object
   
   ```
   
   ### How to Reproduce
   
   Create file with file  ( Menu Route -> Advanced -> import ) : 
   
   ```
   openapi: 3.0.0
   info:
     version: "1"
     description: |-
       test desc
     license:
       name: Apache License 2.0
       url: http://www.apache.org/licenses/LICENSE-2.0
     title: |-
       test title
   paths:
     /hello:
       post:
         description: |-
           hello world.
         operationId: hello
         x-apisix-upstream:
           type: roundrobin
           nodes:
             - host: "172.16.238.20"
               port: 1980
               weight: 1
         parameters:
           - name: id
             in: header
             description: ID of pet to use
             required: true
             schema:
               type: string
             style: simple
   
         requestBody:
           content:
             'application/x-www-form-urlencoded':
               schema:
                 properties:
                   name:
                     description: Update pet's name
                     type: string
                   status:
                     description: Updated status of the pet
                     type: string
                 required:
                   - status
         responses:
           200:
             description: list response
           default:
             description: unexpected error
   ```
   
   Import file with apisix-dashboard  ( Menu Route -> Advanced -> import ).
   
   
   Result : 
   
   ```
   uris:
     - /hello
   name: hello2_hello
   methods:
     - POST
   upstream_id: hello2
   status: 0
   
   ```
   
   
   
   
   
   ### Screenshots
   
   _No response_
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 3.11.0
   - OS (cmd: `uname -a`): Debian 11
   - etcd version, if have (cmd: run `etcd --version`): 3.5.0
   - apisix-dashboard version, if have: 3.0.1
   
   
   
   ### Additional context
   
   _No response_


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