aws / aws/aws-sam-cli

Api inline swagger with $ref to external file

Open
#1,901 3 comments 4 reactions 0 assignees View on GitHub
area/api-integration maintainer/need-followup type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

I want to use an additional external swagger file in my swagger.yaml file.
```
ServerlessApi:
Type: AWS::Serverless::Api
Properties:
DefinitionBody:
Fn::Transform:
Name: AWS::Include
Parameters:
Location: ../../api/swagger.yaml
```

```
paths:
/company:
$ref: ./routes/company/swagger.yaml
```

How can I do this using SAM?
SAM doesn't upload the additional file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.