-
Notifications
You must be signed in to change notification settings - Fork 2.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 JSON schema #1133
Comments
From a cfn lint perspective I like this idea. sam translator is currently essential to us being able to lint serverless templates. Having a shema could remove us from that requirement and allow us to directly lint the original file. |
+1 to this. AWS CDK is currently using the spec for awslabs/goformation to auto-generate CDK L1 resources (i.e. language bindings) and we're seeing a couple of cases where the handcrafted spec deviates from SAM's spec, specifically in terms of required and optional attributes, that blocks our customers from doing the right thing. Referencing aws/aws-cdk#3841 and awslabs/goformation#87. |
Another +1. I'd like to add SAM resource types to https://github.com/aws-cloudformation/rain :) |
There's https://github.com/aws/serverless-application-model/blob/develop/samtranslator/validator/sam_schema/schema.json , but it doesn't seem up-to-date, it's missing HttpApi, I'd like to have something as well though! |
Relevant: #2645 |
Resolving; done in PRs above. See https://github.com/aws/serverless-application-model/blob/develop/samtranslator/schema/schema.json and #2645. |
Description:
Today, SAM's spec is a document meant for human consumption only. SAM should also have an authoritative, machine-readable spec (schema). This would be beneficial in multiple ways:
sam validate
command to just run cfn-lint against the template. I think this would be far more valuable than what the currentsam validate
command offers. Removing cfn-lint's dependency on SAM translator would unblock this.The text was updated successfully, but these errors were encountered: