fix oas export
parent
b9442d0c0c
commit
4aae9803c7
|
|
@ -36,9 +36,16 @@ def handler(event: dict, context: LambdaContext):
|
|||
json_schema = replace_null(json_schema)
|
||||
json_schema['info']['version'] = esd_version.split('-')[0]
|
||||
|
||||
json_schema['servers'][0]['url'] = "{ApiGatewayUrl}"
|
||||
json_schema['servers'][0]['variables']['ApiGatewayUrl'][
|
||||
'default'] = "https://xxxxxx.execute-api.ap-northeast-1.amazonaws.com/prod/"
|
||||
json_schema['servers'] = [
|
||||
{
|
||||
"url": "{ApiGatewayUrl}",
|
||||
"variables": {
|
||||
"ApiGatewayUrl": {
|
||||
"default": "https://xxxxxx.execute-api.ap-northeast-1.amazonaws.com/prod/"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
payload = {
|
||||
'isBase64Encoded': False,
|
||||
|
|
|
|||
Loading…
Reference in New Issue