Skip to content

Asset Type definition inconsistent with Xero interface #575

Description

@winterlimelight

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions