OpenDirect / Spec-Review

IAB Member Review of OpenDirect API Specifications
23 stars 2 forks source link

Clarify use of Short data type #83

Closed aroslov closed 8 years ago

aroslov commented 8 years ago

A few objects use 'Short' data type, which is not defined in the document.

Since objects are described in JSON, and its natural to use JSON Schemas to validate requests and responses, and JSON doesn't have any notion of 'Short', suggest to change 'Short' to 'Integer'.

Where needed, minimum and maximum constraints can be added.

aroslov commented 8 years ago

Similarly, spec references 'Byte' and 'Long' types, which can all be replaced with Integer as per JSON schema standard.

robynp commented 8 years ago

Update all short/long instances to "Integer" in v1.5.1