Contributions
{proxy+} swagger definitions
Hi I've been trying to use the AWS generic proxy swagger open API definition from the AWS site and it always gives the error 'Declared path parameter "proxy+" needs to be defined as a path parameter at either the path or operation level' Below is the definition. What's the issue? openapi: 3.0.0 info: version: '2016-09-12T23:19:28Z' title: PetStoreWithProxyResource paths: '/{proxy+}': x-amazon-apigateway-any-method: parameters: - name: proxy in: path required: true schema: type: string responses: {} x-amazon-apigateway-integration: responses: default: statusCode: '200' requestParameters: integration.request.path.proxy: method.request.path.proxy uri: 'http://petstore-demo-endpoint.execute-api.com/petstore/{proxy}' passthroughBehavior: when_no_match httpMethod: ANY cacheNamespace: rbftud cacheKeyParameters: - method.request.path.proxy type: http_proxy servers: - url: 'https://4z9giyi2c1.execute-api.us-east-1.amazonaws.com/{basePath}' variables: basePath: default: /test4.2KViews0likes6CommentsSwagger Definition object default value
I'm building a swagger json definitiion for the below xml payload to use within the Swagger UI. Once complete I'll convert it to yaml and import the definition into Swagger UI. I'm having an issue figuring out how to display a default value 'Enter value here' for element 'key'. Where would one place this default value in the below json? <addressElement> <key type="RECORD_ID" item="3">Enter value here</key> </addressElement> For the above xml, I have the below json definition. How can I add the value 'Enter value here' in the json to be shown as it is in the above xml? "definitions": { "addressElement": { "type": "object", "title": "Address Element", "properties": { "key": { "type": "object", "properties": { "type":{ "type": "string", "example": "RECORD_ID", "xml":{ "attribute": true } }, "item":{ "type": "integer", "format": "int64", "example": "3", "xml":{ "attribute": true } } } }, }, "xml": { "name": "addressElement" } } }Solved3.3KViews0likes2Comments