Skip to content
This repository has been archived by the owner on Dec 28, 2019. It is now read-only.

Commit

Permalink
#37 support metadata section
Browse files Browse the repository at this point in the history
  • Loading branch information
shalupov committed Jul 8, 2015
1 parent 98f9a0d commit 7bfd972
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ private void root(JsonObject root) {
resources(value);
} else if (CloudFormationSections.Conditions.equals(name)) {
// TODO
} else if (CloudFormationSections.Metadata.equals(name)) {
// Generic content inside, no need to check
// See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
} else if (CloudFormationSections.Outputs.equals(name)) {
outputs(value);
} else if (CloudFormationSections.Mappings.equals(name)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public class CloudFormationSections {
public static final String Resources = "Resources";
public static final String Parameters = "Parameters";
public static final String Mappings = "Mappings";
public static final String Metadata = "Metadata";
public static final String Conditions = "Conditions";
public static final String Outputs = "Outputs";

Expand Down
17 changes: 17 additions & 0 deletions testData/inspections/src/issue37-no-errors.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "desc",

"Metadata": {
"Version": "V1.0",
"LastUpdated": "Jan 1st 2015",
"UpdatedBy": "First Last",
"Comments": "Initial Draft"
},

"Resources": {
"MyLoadBalancer": {
"Type":
}
}
}

0 comments on commit 7bfd972

Please sign in to comment.