Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update serverless.py #822

Merged
merged 2 commits into from
Oct 7, 2017
Merged

Update serverless.py #822

merged 2 commits into from
Oct 7, 2017

Conversation

automartin5000
Copy link
Contributor

Adding "DefinitionBody" to serverless::api. Not sure if this is the right type (dict) as the body can either be a YAML or JSON object. Also not sure how to do either/or (True/False) as you can specify either DefinitionBody or DefinitionUri. Would appreciate getting this added to the next release ASAP, as this is a blocking defect. Thanks!

Add "DefinitionBody" to serverless::api
@michael-robbins
Copy link

See https://github.com/cloudtools/troposphere/blob/master/troposphere/ec2.py#L278 on how to perform an OR validation!

@michael-robbins
Copy link

michael-robbins commented Sep 27, 2017

As far as the type goes, can you test it yourself? Does CloudFormation expect an object, or a serialised object (string)?

The main mention I can find says it's an 'object', not sure which one that actually is! https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

@markpeek markpeek merged commit 7d7a7af into cloudtools:master Oct 7, 2017
@markpeek
Copy link
Member

markpeek commented Oct 7, 2017

Thanks! I did push validation logic and some tests onto your branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants