diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-10-16 10:50:27 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-10-16 10:50:27 -0700 |
commit | 8df150f2bc03597bf2c1496816a95a3267661024 (patch) | |
tree | 7f07d14b3070823d6e40ab593f3b899e1453e929 /tasks/docs.rb | |
parent | d5eb0b6c75adadc0e1e1e7c06e7b744e6bc1963b (diff) | |
download | chef-8df150f2bc03597bf2c1496816a95a3267661024.tar.gz |
Update docs generation task to handle Chef 16 required format
We need a boolean for the docs site here, but we get back an array now.
For now let's just treat it like a boolean.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'tasks/docs.rb')
-rwxr-xr-x | tasks/docs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb index 14b15e0d15..16f16e7cfe 100755 --- a/tasks/docs.rb +++ b/tasks/docs.rb @@ -159,7 +159,7 @@ namespace :docs_site do values = {} values["property"] = property["name"] values["ruby_type"] = friendly_types_list(property["is"]) - values["required"] = property["required"] + values["required"] = !!property["required"] # right now we just want a boolean value here since the docs doesn't know what to do with an array of actions values["default_value"] = default_val unless default_val.nil? values["new_in"] = property["introduced"] unless property["introduced"].nil? values["allowed_values"] = property["equal_to"].join(", ") unless property["equal_to"].empty? |