GRESB / api-docs

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

Batch Assets Operation endpoint returns string for certification size #70

Closed gwgrubbs closed 4 years ago

gwgrubbs commented 4 years ago

The Batch Assets Operation endpoint returns a value type of string for certification size

The data dictionary specifies a data type of numeric for certification "size", but assets in the response are strings.

[POST] /api/v1//entities/{entity_id}/assets/batches

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": {}
        }
    }
]
...

Actual:

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

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