-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TOML Alternative #2379
Comments
+1 to this. |
+1 Agree with everything mousedownmike mentioned, and have had many of the same experiences myself. |
+1 |
I'll also add that TOML, being more of a niche config language, has somewhat worse tooling around it. JSON and YAML have great extensions for syntax highlighting, intellisense, validation, etc. in editors like VS Code. TOML less so. |
Thanks for raising this feature request. We prioritize features based on 👍's on a request. If this feature impacts you please 👍 the issue instead of adding comment. Thanks. |
The way the TOML configuration works right now makes it practically unusable unless every configuration value you have is static. |
I completely agree and I can't understand a rationale for using TOML instead of yaml (or even JSON). For fun, this is how the example at https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-config.html would look like in YAML:
For someone who is working with SAM and has to use yaml every day, why adding a completely different syntax with a niche config language? |
Hi all, We released YAML file format support in SAM Configuration file in |
|
I was initially going to place this as a comment on #2253 but I fear it might sidetrack efforts there so I'm opening a separate ticket.
The issue in #2253 highlights a point of friction I found while trying to learn SAM. The use of TOML for the samconfig file seems unique and arbitrary in the scope of AWS utilities that I've worked with. With the exception of credential files which seem to be TOML-like, I'm not familiar with any other AWS tools that use TOML to the extent that SAM does. In an environment where JSON and YAML are abundant, is it necessary to introduce an additional (and somewhat incompatible) file format? As someone new to SAM, here are my initial observations:
Is this a technical decision that is open to review in future CLI revisions? Is it possible to support JSON syntax as an alternative?
I'm enjoying the benefits that I'm getting from adopting SAM in my project but I'm concerned that the developer friction will slow/stall adoption. The YAML heavy format of CloudFormation is already a high hurdle, adding TOML to that seems to introduce more difficulties than it solves.
The text was updated successfully, but these errors were encountered: