Unable to import OpenAPI spec into API management services

Kenny Wong (HK) 20 Reputation points
2024-05-08T10:46:01.3233333+00:00

I tried to import openapi.json into API Management service

User's image

But it returns "One or more fields contain incorrect values:" without any hints on which values have problem.

User's image

I tried to validate the OpenAPI spec with this link https://apitools.dev/swagger-parser/online/# and there's no error with my spec

May I know how can I troubleshoot this?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,801 questions
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 22,121 Reputation points
    2024-05-09T04:30:59.4633333+00:00

    @Kenny Wong (HK) Thanks for reaching out. From the description I understand that you are trying to import an OpenAPI spec, but you are receiving an error message saying that One or more fields contain incorrect values. This error message indicates that there might be an issue with your OpenAPI document.

    there are some limitations and restrictions when importing an API. You can find more information in the following document: https://learn.microsoft.com/en-us/azure/api-management/api-management-api-import-restrictions

    To validate your OpenAPI document locally before importing it to APIM, you can use a third-party tool such as Swagger Editor: https://editor.swagger.io/

    please verify and let me know incase of further queries, I would be happy to assist you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful