google / cap-library

Common Alerting Protocol Library
Apache License 2.0
84 stars 26 forks source link

Check that event code is valid, if event type is SAME #32

Closed sschiavoni closed 9 years ago

sschiavoni commented 9 years ago

Original issue 33 created by yuch@google.com on 2012-10-03T06:58:02.000Z:

What steps will reproduce the problem?

  1. In the block below - the validator won't throw and error or warning if the <value> tag is not in the list of the <valueName> tag

<eventCode> <valueName>SAME</valueName> <value>WXR</value> </eventCode>

What is the expected output? What do you see instead? Throw a warning if <valueName>SAME</valueName>, but <value> isn't a SAME code

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 2013-12-05T06:59:02.000Z:

More trouble than it's worth.

SAME code is only used in the US, and even then not very frequently used. It will also change so there will be maintenance costs.