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

   ### Issue description
   
   When I try to import openapi file containing extended field as like shown in 
this guide : 
[https://apisix.apache.org/docs/dashboard/2.6/IMPORT_OPENAPI_USER_GUIDE/](url) 
those are not imported. 
   
   ### Expected behavior
   
   the "x-apisix.." fields should also imported to the dashboard : plugins, 
upstream, even the published status.
   
   ### How to Reproduce
   
   1. prepare openapi docs file containing "x-apisix-..." field. like this : 
    `openapi: 3.0.0
   info:
     version: 1.0.0-oas3
     description: test desc
     license:
       name: Apache License 2.0
       url: 'http://www.apache.org/licenses/LICENSE-2.0'
     title: test title
   paths:
     /hello:
       get:
         description: hello world.
         operationId: hello
         x-apisix-upstream:
           type: roundrobin
           nodes:
             - host: 172.16.238.20
               port: 1980
               weight: 1
         x-apisix-plugins:
           limit-count:  
             count: 2
             time_window: 60
             rejected_code: 503
             key: remote_addr
         x-apisix-status: 0
         responses:
           '200':
             description: list response
           default:
             description: unexpected error 
   `
   2. Open apisix dashboard, then go to Route Tab, open Advance and Import the 
openapi file.
   
   
   ### Screenshots
   
   
![image](https://github.com/user-attachments/assets/63a4bfdf-a926-4114-999d-7efd4ead2ab5)
   
   
![image](https://github.com/user-attachments/assets/0f004e4f-f77c-49b2-b078-5a532f37bc82)
   
   
![image](https://github.com/user-attachments/assets/4464ee72-5057-4969-92f5-169dc240eecc)
   
   
   ### Environment
   
   - apisix version : 3.10
   - OS : Windows 11 
   - etcd version : 3.5.11
   - apisix-dashboard : 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