Contributions
Re: Integration JSON Format
The example follows. However, I think I'm okay now. If I proactively reformatted the YAML so that there are no objects defined within another object without using a reference to a stand-alone definition. Doing this I can make sure that all of my definition names are compliant. It fixed it for me; although, it is a little strange that the download button produces different JSON then the integration. Thanks! For example: The following JSON: "Color": { "type": "object", "properties": { "rgb": { "type": "string", "description": "Red, Green, and Blue color definition (e.g., \"R 167 / G 213 / B 0\")" }, "w3c": { "type": "object", "properties": { "hex": { "type": "string", "description": "(e.g., \"#696969\")" }, "name": { "type": "string", "description": "(e.g., DimGray)" } } }, } Will be reformatted as: "Color" : { "type" : "object", "properties" : { "rgb": { "type": "string", "description": "Red, Green, and Blue color definition (e.g., \"R 167 / G 213 / B 0\")" }, "w3c" : { "$ref" : "#/definitions/Color_w3c" }, } }, With a reference to this newly created definition that fails the AWS API Gateway import because of the underscore: "Color_w3c" : { "properties" : { "hex" : { "type" : "string", "description" : "(e.g., \"#696969\")" }, "name" : { "type" : "string", "description" : "(e.g., DimGray)" } } }2KViews0likes1CommentIntegration JSON Format
I recently activated the Bitbucket integration. I'm sending my API definition to a repo in the JSON and YAML formats. I noticed that the JSON that is output by this integration is a different format than the JSON that is produced when you download the file manually. Specifically, any model that has a JSON object as a child param is reformatted such that the child object is broken out as a separate definition with the name [parent object]_[child object]. When I try to import this definition into the AWS API Gateway it fails b/c the name has an underscore in it. I know I can downloadthe file manually and it will be formatted appropriately but I'm trying to automate deployment so that as soon as I click the Bitbucket integration the entire deploymentprocess is automated. Any help will be much appreciated! Thanks.2KViews0likes3Comments