-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[sam] 'version' field should be optional but is mandatory #3841
Comments
Confirmed that this is an issue and is not isolated to Python. It looks like SAM schema does state that the The issue is coming from the SAM schema defined in the Goformation repo. CDK uses this as the SAM schema to generate its language bindings. |
There's an existing discussion on this in the Goformation repo - awslabs/goformation#87 |
This has fixed in goformation. Awaiting propagation to CDK. |
Change is now in the CDK - fd167c3#diff-2a4aee8c725dbbe91207a037eecbb2dd Closing. |
This was never fixed. The original issue is about Can we get this same fix for the Api resource? |
🐛 Bug Report
What is the problem?
When using the Python aws_sam module, and trying to declare a CfnApi object, the definition_uri is requiring 'version', when the documentation says it should be an optional field.
Reproduction Steps
Try to create a Python CfnApi object instance, like so:
If you run 'cdk synth', it'll error out. The log is provided below.
Verbose Log
Environment
Other information
Here's the documentation that says the 'version' for the bucket should be optional:
https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#s3-location-object
The text was updated successfully, but these errors were encountered: