FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Asset Type definition inconsistent with Xero interface · Issue #575 · XeroAPI/Xero-OpenAPI · GitHub

Asset Type definition inconsistent with Xero interface #575

Description

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.

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


    Back | FazBrowse Home | New Git URL