Skip to content

Commit

Permalink
Add descriptions to Terraform schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson committed Nov 11, 2019
1 parent 1857ae4 commit a934d78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/terraform/schema_property.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<% unless property.state_func.nil? -%>
StateFunc: <%= property.state_func %>,
<% end -%>
Description: `<%= property.description.strip.gsub("\n\n", "\n").gsub("`", "'") -%>`,
<% if property.is_a?(Api::Type::NestedObject) -%>
MaxItems: 1,
Elem: &schema.Resource{
Expand Down

0 comments on commit a934d78

Please sign in to comment.