XeroAPI / Xero-OpenAPI

An OpenAPI description of the Xero API

Home Page:https://developer.xero.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asset Type definition inconsistent with Xero interface

winterlimelight opened this issue · comments

In the file https://github.com/XeroAPI/Xero-OpenAPI/blob/master/xero_assets.yaml the field effectiveLifeYears is defined as type: integer

However in the Xero interface it is a decimal, and seems now to force the value to have decimal places.
image

And the returned api data is formatted with a decimal place:
"effectiveLifeYears": 5.00,

Because my generated code uses integer as the type definition, it fails when trying to parse this field.

I therefore believe this should be type: number rather than integer.

PETOSS-373

Thanks for raising an issue, a ticket has been created to track your request