lib/utils.rb in jekyll-ramler-0.0.8 vs lib/utils.rb in jekyll-ramler-0.0.9

- old
+ new

@@ -82,13 +82,12 @@ if param.include?('description') param['description'] = Jekyll::sanatize_json_string(param['description']) end - # Repeat is not a supported keyword in JSON Schema - if param.include?('repeat') - param.delete('repeat') - end + # Repeat and displayName are not supported keywords in JSON Schema + param.delete('repeat') + param.delete('displayName') end schema_hash['required'] = required_properties if not required_properties.empty? JSON.pretty_generate(schema_hash) end