1. Incorrect Data Type
1.1 Invalid date value
| RuleID | Data Field | Description |
|---|---|---|
| 1.1.1 | dateGenerated | The dateGenerated must be a valid UTC date. eg. 1994-11-05T08:15:30-05:00 See https://www.w3.org/TR/NOTE-datetime for further details. |
| 1.1.2 | firstObservationDate | The first observation date must be a valid date in the following format: YYYY-MM-DD If only the year is known use YYYY-01-01 eg-1993-01-01 |
| 1.1.3 | finalObservationDate | If supplied, the final observation date must be a valid date in the following format: YYYY-MM-DD If only the year is known use YYYY-12-31 eg-2014-12-31 |
1.2 Invalid numerical value supplied
| RuleID | Data Field | Description |
|---|---|---|
| 1.2.1 | latitude | The latitude must be a valid number. |
| 1.2.2 | longitude | The longitude must be a valid number. |
| 1.2.3 | elevation | The elevation must be a valid number. |
1.3 Boolean
The value supplied must be “true” or “false”.
1.4 VersionNumber
| RuleID | Data Field | Description |
|---|---|---|
| 1.4.1 | version | The schema version must be a valid NEMSR JSON schema version. Valid versions are: 1.0.0 |
1.5 URI
The URI format is incorrect. See https://en.wikipedia.org/wiki/Uniform_Resource_Identifier for more information.
| RuleID | Data Field | Description |
|---|---|---|
| 1.5.1 | networkURL | The network URL must be a valid URL - eg. http://www.bom.gov.au |
| 1.5.2 | siteURL | The site URL must be a valid URL - eg. http://www.bom.gov.au |
1.6 URL or email
A valid URL or email address should be supplied.
| RuleID | Data Field | Description |
|---|---|---|
| 1.6.1 | contactDetails/onlineResource | The network contact online resource must be a valid email address or URL. |
1.7 Invalid character
The following characters are permitted in string values:
- Any letter [A-Za-z]
- Any digit [0-9]
- Any punctuation character [ ! ‘ # $ % & ( ) * + , - . / : ; < = > ? @ [ / ] ^ _ { | } ~]
- The character must exist in the ASCII printable code chart https://en.wikipedia.org/wiki/ASCII#Printable_characters