Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing openapi file that contains extended field "x-apisix-..." doesnt work on apisix dashboard #2971

Open
SatriyoJati opened this issue Nov 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SatriyoJati
Copy link

SatriyoJati commented Nov 8, 2024

Issue description

When I try to import openapi file containing extended field to apisix dashboard routes as like shown in this guide : https://apisix.apache.org/docs/dashboard/2.6/IMPORT_OPENAPI_USER_GUIDE/ , fileds that start with "x-apisix-..." , those are not imported.
image

Expected behavior

the "x-apisix.." fields should also imported to the dashboard : plugins, upstream, even the published status, but they are not imported.

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 
  1. Open apisix dashboard, then go to Route Tab, open Advance and Import the openapi file.

Screenshots

image

image

image

Environment

  • apisix version : 3.10
  • OS : Windows 11
  • etcd version : 3.5.11
  • apisix-dashboard : 3.0.1

Additional context

No response

@SatriyoJati SatriyoJati added the bug Something isn't working label Nov 8, 2024
@SatriyoJati
Copy link
Author

@bzp2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant