Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OtaFileSize type is incorrect (needs to be uint64 instead of str) #417

Open
samadDotDev opened this issue Oct 31, 2022 · 0 comments
Open

Comments

@samadDotDev
Copy link

The OtaFileSize is defined as uint64 in Matter Spec. However, the schema is incorrectly returning it as a string, for instance:

curl --location --request GET 'https://on.test-net.dcl.csa-iot.org/dcl/model/versions/31/100/1'

{
    "modelVersion": {
        "vid": 31,
        "pid": 100,
        "softwareVersion": 1,
        "softwareVersionString": "1.0",
        "cdVersionNumber": 1,
        "firmwareInformation": "",
        "softwareVersionValid": true,
        "otaUrl": "",
        "otaFileSize": "0",
        "otaChecksum": "",
        "otaChecksumType": 0,
        "minApplicableSoftwareVersion": 1,
        "maxApplicableSoftwareVersion": 10,
        "releaseNotesUrl": "",
        "creator": "cosmos1clsrmjxx07k9u70wgem3q9ve9s978adgmhnt0m"
    }
}

It is also specified incorrectly as a string in the docs of this repo. Note that even this repository contains it as a strong number / uint64 in most places:

But then there are places like the following which specify it as a string:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant