Closed lsanders closed 4 years ago
My coworker figured this out - turns out to be pretty straight forward!
In case anyone stumbles on this issue:
Just put your markdown in a separate yml file that starts with a pipe (|) newline:
|
# Heading one
Some valid markdown
- item one
in serverless.yml
functions:
method:
...
events:
- http:
path: ...
method: post
cors:
origin: "*"
allowCredentials: false
documentation:
summary: Method Summary
description: ${file(./source/apidocs/method-descriptions/method.yml)}
Long shot, but has anyone done this?