Error uploading Swagger/OpenAPI 3 file

book

Article ID: 223653

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

I am trying to work with and upload Swagger/OAS3.0 documents to APIs and getting a JSON parsing error.

Unable to carry out the operation. No updates have been made. See details below.

Edit API: Sample Pet Store App

Errors (1)

    Invalid swagger file specified.

Cause

Used the tool in the link below to verify JSON file 

https://jsonlint.com/

The JSON Validator

JSONLint is the free online validator and reformatter tool for JSON, a lightweight data-interchange format

 

Extra comma caused the failure 

Environment

Release : 5.0

Component : API PORTAL

Resolution

Removed the extra comma, once removed JSON loaded without issue