Skip to content

Commit

Permalink
chore(generate): add notice to schema generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfonseca committed Feb 25, 2022
1 parent 96aa13c commit 31b73b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ func (rg *ResourceGenerator) generateJSONSchema(specname string, spec *CloudForm

// Also create a Go importable version
var gocode []byte
gocode = append(gocode, []byte("// This file was autogenerated by 'go generate'. Please don't change it directly\n\n")...)
gocode = append(gocode, []byte("package schema\n")...)
gocode = append(gocode, []byte("\n")...)
gocode = append(gocode, []byte("// "+strings.Title(specname)+"Schema defined a JSON Schema that can be used to validate CloudFormation/SAM templates\n")...)
Expand Down
2 changes: 2 additions & 0 deletions schema/cdk.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file was autogenerated by 'go generate'. Please don't change it directly

package schema

// CdkSchema defined a JSON Schema that can be used to validate CloudFormation/SAM templates
Expand Down
2 changes: 2 additions & 0 deletions schema/cloudformation.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file was autogenerated by 'go generate'. Please don't change it directly

package schema

// CloudformationSchema defined a JSON Schema that can be used to validate CloudFormation/SAM templates
Expand Down
2 changes: 2 additions & 0 deletions schema/sam.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file was autogenerated by 'go generate'. Please don't change it directly

package schema

// SamSchema defined a JSON Schema that can be used to validate CloudFormation/SAM templates
Expand Down

0 comments on commit 31b73b9

Please sign in to comment.