lib/mihari/commands/json.rb in mihari-2.4.0 vs lib/mihari/commands/json.rb in mihari-3.0.0

- old
+ new

@@ -10,10 +10,10 @@ with_error_handling do json = input || $stdin.gets.chomp raise ArgumentError, "Input not found: please give an input in a JSON format" unless json json = parse_as_json(json) - raise ArgumentError, "Invalid input format: an input JSON data should have title, description and artifacts key" unless valid_json?(json) + raise ArgumentError, "Invalid input format: an input JSON data should have title, description and artifacts key" unless required_alert_keys?(json) title = json["title"] description = json["description"] artifacts = json["artifacts"] tags = json["tags"] || []