GRESB / api-docs

http://gresb.github.io/api-docs/
4 stars 0 forks source link

Get Assets endpoint returns string for certification size and asset size #71

Closed gwgrubbs closed 4 years ago

gwgrubbs commented 4 years ago

The data dictionary specifies a data type of numeric for certification "size" and annual data "asset_size", but calls to get asset data returned from

[GET] /api/v1/entities/{entity_id}/assets

return the values as strings.

Expected:

...
"certifications": [
    {
        "id": 123,
        "certification_id": 959,
        "name": "LEED/Building Design and Construction (BD+C)",
        "level": "Platinum",
        "size": 1757330.0,
        "_validations": {
            "errors": {}
        }
    }
],
"asset_size": 1757330.0,
...

Actual:

...
"certifications": [
    {
        "id": 123,
        "certification_id": 959,
        "name": "LEED/Building Design and Construction (BD+C)",
        "level": "Platinum",
        "size": "1757330.0",
        "_validations": {
            "errors": {}
        }
    }
],
"asset_size": "1757330.0",
...
gresbtim commented 4 years ago

thanks for flagging this. we will deploy a fix soon.