google / cap-library

Common Alerting Protocol Library
Apache License 2.0
80 stars 30 forks source link

Validate multiple CAP events at once #29

Closed sschiavoni closed 9 years ago

sschiavoni commented 9 years ago

Original issue 30 created by yuch@google.com on 2012-05-08T21:31:28.000Z:

I think the CAP schema only allows for one <event> tag right now. So there's no way in our validator to validate a series of <event>s. I'll have to copy and paste each event one by one.

Would be great if we can validate multiple events at once. There could be a few ways to do this

  1. tokenize the <event>s and validate one by one in code
  2. modify the schema to allow multiple occurrences of <event>
  3. allow uploading of multiple files

I'm not really wed to any of these suggestions, and am open to others as well. Maybe 3's the best way here since it doesn't modify the schema and hopefully is less work than 1.

What steps will reproduce the problem? 1. 2. 3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

sschiavoni commented 9 years ago

Comment #1 originally posted by yuch@google.com on 2012-08-28T04:50:35.000Z:

<empty>

sschiavoni commented 9 years ago

Comment #2 originally posted by yuch@google.com on 2013-12-05T06:57:47.000Z:

Replaced by a different bug about validating updates/alert sequences.