Revision 30d11a3b2f4a557fe24cc7ba205b01dd7f0c3bc9 authored by Martin Holters on 24 January 2023, 21:16:49 UTC, committed by GitHub on 24 January 2023, 21:16:49 UTC
The type parameters to `Union` may be `Type`s or `TypeVar`s, but `apply_type_tfunc` failed to recognize the latter as valid in the single-argument case.
1 parent dfab7be
httpbin-prod-swagger-apigateway.yaml
---
swagger: "2.0"
info:
description: "Looks like an httpbin"
version: "2020-06-18T07:18:54Z"
title: "httpbin"
host: "httpbin.julialang.org"
schemes:
- "https"
paths:
/get:
get:
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: "200 response"
schema:
$ref: "#/definitions/Empty"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "200"
responseTemplates:
application/json: "#set($allParams = $input.params())\n{\n\"args\":\
\ {\n#set($params = $allParams.get(\"querystring\"))\n#foreach($paramName\
\ in $params.keySet())\n\"$paramName\" : \"$util.escapeJavaScript($params.get($paramName)).replaceAll(\"\
\\\\'\",\"'\")\"\n#if($foreach.hasNext),#end\n\n#end\n},\n\"headers\"\
: {\n#set($params = $allParams.get(\"header\"))\n#foreach($paramName\
\ in $params.keySet())\n\"$paramName\" : \"$util.escapeJavaScript($params.get($paramName)).replaceAll(\"\
\\\\'\",\"'\")\"#if($foreach.hasNext),#end\n\n#end\n},\n\"origin\"\
: \"$context.identity.sourceIp\",\n\"url\": \"$context.path\"\n}\n"
requestTemplates:
application/json: "{\"statusCode\": 200}"
passthroughBehavior: "when_no_match"
type: "mock"
/ip:
get:
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: "200 response"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "200"
responseTemplates:
application/json: "{\n \"origin\" : \"$context.identity.sourceIp\"\n\
}"
requestTemplates:
application/json: "{\"statusCode\": 200}"
passthroughBehavior: "when_no_match"
type: "mock"
/status/200:
get:
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: "200 response"
schema:
$ref: "#/definitions/Empty"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "200"
requestTemplates:
application/json: "{\"statusCode\": 200}"
passthroughBehavior: "when_no_match"
type: "mock"
/status/404:
get:
consumes:
- "application/json"
responses:
404:
description: "404 response"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "404"
requestTemplates:
application/json: "{\"statusCode\": 404}"
passthroughBehavior: "when_no_match"
type: "mock"
definitions:
Empty:
type: "object"
title: "Empty Schema"
x-amazon-apigateway-gateway-responses:
DEFAULT_4XX:
statusCode: 401
responseTemplates:
application/json: "{\"message\":$context.error.messageString}"
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...