Error while saving Logic app custom connector of open api definition

Avinash Ninamohina 1 Reputation point
2020-07-13T17:26:06.197+00:00

I have created a logic app custom connector with an open definition file but its showing below error while saving and all the actions look perfect without any error.

{"Code":"","Message":"PUT https://logic-apim-eastus.management.azure-api.net/apis/75337ea703654c0487ac46688e8937ed?import=true&protocols=https&protocols=http&path=apim/75337ea703654c0487ac46688e8937ed&api-version=2014-02-14 failed with BadRequest, content={\"error\":{\"code\":\"ValidationError\",\"message\":\"One or more fields contain incorrect values:\",\"details\":[{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): Property 'requestBody' has not been defined and the schema does not allow additional properties. Path 'paths['/{connectionId}/api/claimdetails'].post.requestBody', line 22, position 22.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails'].post.responses.201', line 42, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails'].post.responses.400', line 52, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails'].post.responses.401', line 65, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails/{id}'].get.responses.200', line 112, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails/{id}'].get.responses.401', line 122, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails/{id}'].delete.responses.401', line 161, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): Property 'requestBody' has not been defined and the schema does not allow additional properties. Path 'paths['/{connectionId}/api/claimdetails/{id}'].put.requestBody', line 196, position 22.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails/{id}'].put.responses.200', line 216, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails/{id}'].put.responses.400', line 226, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails/{id}'].put.responses.401', line 239, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails/'].get.responses.200', line 271, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'paths['/{connectionId}/api/claimdetails/'].get.responses.401', line 284, position 18.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): Property 'openapi' has not been defined and the schema does not allow additional properties. Path 'openapi', line 307, position 12.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): Property 'components' has not been defined and the schema does not allow additional properties. Path 'components', line 308, position 15.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specificate https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json).\"}]}}","Target":null,"Details":[],"Innererror":null}

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,857 questions
{count} votes