This tool allows the validation of an Object that is publicly reachable by the tool: http://dev_devtoolkit.openmobilealliance.org/OEditor/OMNAVerify
- The error codes relevant to single Object Validation are from (403 to 499).
- In addition the user needs to validate by hand the criteria provided by error codes (400 to 402).
The information in the OMNA LwM2M Registry is contained in two files:
- DDF.xml : this file contains all the Object information that is displayed in the OMA LwM2M registry (with the exception of the Reusable Resources that are contained in the "Common.xml" file.
- Common.xml : this file contains the Reusable Resources information that is displayed in the OMA LwM2M registry.
Error Codes
General Requirements
Fault ID. | Description |
---|---|
005 | SenML units was not possible to load and therefore not used during validation |
010 | The API does not return the same number of objects for DDF.XML |
011 | The API does not return the same number of resources for Common.XML - NOT SUPPORTED, THE API DOES NOT SUPPORT Common.XML |
021 | Validate that the XML File is 1) well formatted 2) valid according to the schema in DDF.XML |
022 | Validate that the XML File is 1) well formatted 2) valid according to the schema in Common.XML |
023 | Validate that the API return MIME Type application/json |
031 | Validate that the file contains at least one object in DDF.XML |
032 | Validate that the file contains at least one resource in Common.XML |
041 | Invalid content or element that is not expected in DDF.XML |
042 | DISABLED - Invalid content or element that is not expected in Common.XML |
Elements in the DDF.xml
Fault ID | Elements | Description |
---|---|---|
200 | ObjectID | Version is the same between two objects with the same Object ID |
201 | DISABLED - Name is different for different version of the same Object ID | |
202 | DISABLED - Description is different for different version of the same Object ID | |
210 | URN | The URN or ObjectID not correct according to the TS The URN or Source category is not correct according to the TS The URN or Ver is not correct according to the TS The ID is not in the range allowed by Source |
220 | Name | Is not allowed to be empty |
230 | Description | Is not allowed to be empty |
240 | Owner | Is not allowed to be empty |
250 | Source | Is not allowed to be empty |
251 | Must be either "0", "1" or "2" without quotes | |
260 | Ver | Must be either empty or 3 character with the format <Digit>.<Digit> according to the TS |
270 | DDF | Must be either Empty or a valid link that does not return HTTP 404 (Not Found) and any error while downloading the object or processing the object |
271 | The MIME Type of the response must be text/xml | |
272 | The link contains a invalid Object | |
273 | The link contains an Object with a minimum of one resource | |
280 | LWM2M (Void) | Must either be empty if DDF is empty or a valid link to the tool with the URL to load the object into the tool A valid URL must start with the call to the tool: http://devtoolkit.openmobilealliance.org/OEditor/LWMOView?url= Note: this error code is not longer in used. The element that contained the link to the LwM2M Editor was removed from the DDF. |
290 | Vorto | Must be either Empty or a valid link that does not return HTTP 404 (Not Found) |
291 | DISABLED - The MIME Type of the response must not be "html" to avoid web page with HTTP 404 | |
300 | DDFLink | Is not allowed to be empty |
301 | Must be either "0", or "1" without the quotes | |
310 | TS | Must be either Empty or a valid link that does not return HTTP 404 (Not Found) |
311 | DISABLED - The MIME Type of the response must not be "html" to avoid web page with HTTP 404 | |
320 | TSLink | Is not allowed to be empty |
321 | Must be either "0", or "1" without the quotes | |
330 | LicenseType | Must either be empty or string - Will not be verified, empty or non-existing is treated equally |
400 | Content of Object | "Object ID" inside the object is not the same as in the DDF.XML File |
401 | "Object URN" inside the object is not the same as in the DDF.XML File | |
402 | "Object Name" inside the object is not the same as in the DDF.XML File | |
403 | Incorrect content of LWM2MVersion | |
404 | Non-existent xml schema reference | |
405 | Incorrect xml schema reference, according to the "LwM2M Version" | |
410 | Content of the objects resources | Empty Name |
411 | Invalid Operations according to the TS | |
412 | Invalid Type according to the TS | |
413 | Invalid Type for an resource with Operation = "E" | |
414 | Invalid MultipleInstances value | |
415 | Invalid Mandatory value | |
416 | Empty description | |
417 | Invalid Unit value according to SenML | |
450 | Content of the object's reusable resources | The object uses an non existing reusable resource |
460 | Miss match with reusable resources on: Name | |
461 | Miss match with reusable resources on: Operation | |
462 | Miss match with reusable resources on: Type | |
463 | Miss match with reusable resources on: RangeEnumeration | |
464 | Miss match with reusable resources on: Unit |
Elements in the Common.xml
Fauld ID | Element | Description |
---|---|---|
500 | Item ID | The ID is already used in another registration, it must be unique |
501 | The ID is not in the range of (2048 - 26240) | |
510 | Name | Is not allowed to be empty |
601 | Invalid XML characters, for example smart quote | |
520 | Operations | Invalid Operations according to the TS |
604 | Invalid XML characters, for example smart quote | |
530 | Type | Invalid Type according to the TS |
531 | Invalid Type for an resource with Operation = "E" | |
540 | RangeEnumeration | N/A, No validation done |
550 | Units | N/A, No validation done |
551 | Invalid Unit according to SenML | |
560 | Submitter | N/A, No validation done |
570 | Description | Is not allowed to be empty |
571 | Description is not CDATA encoded - Will not be validated | |
602 | Invalid XML characters, for example smart quote | |
580 | TS | Must be either Empty or a valid link that does not return HTTP 404 (Not Found) |
581 | The MIME Type of the response must not be "html" to avoid web page with HTTP 404 | |
605 | Invalid XML characters, for example smart quote | |
590 | TSLink | Is not allowed to be empty |
591 | Must be either "0" or "1" without quotes |