martysweet / cfn-lint

A CloudFormation JSON and YAML Validator
MIT License
163 stars 38 forks source link

Add validateString API #213

Closed jpb closed 2 years ago

jpb commented 5 years ago

Adds validateString API which is similar to validateFile but makes cfn-lint easier to use within other projects where the template exists only in memory.

martysweet commented 5 years ago

@jpb Thanks for your contributions on this. I've had a look at the yaml plugin and it seems like we can pass in null for the filename as it's just used for debug messages, which via a string input wouldn't be much use. Let me know if this sound good! Thanks