lib/verifier.rb in inqlude-0.8.0 vs lib/verifier.rb in inqlude-0.9.0

- old
+ new

@@ -86,9 +86,13 @@ errors = JSON::Validator.fully_validate(schema_file, manifest.to_json) errors.each do |error| @result.errors.push "Schema validation error: #{error}" end + if manifest.display_name.nil? + @result.warnings.push "Warning: missing `display_name` attribute" + end + topics = manifest.topics if topics.nil? @result.warnings.push "Warning: missing `topics` attribute" else valid_topics = ['API', 'Artwork', 'Bindings', 'Communication', 'Data', 'Desktop', 'Development', 'Graphics', 'Logging', 'Mobile', 'Multimedia', 'Printing', 'QML', 'Scripting', 'Security', 'Text', 'Web', 'Widgets']