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

Documentation for Example: attribute list get is inconsistent with runtime return value #1031

Open
samreid opened this issue Dec 1, 2023 · 0 comments

Comments

@samreid
Copy link

samreid commented Dec 1, 2023

We are following the documentation in https://github.com/concord-consortium/codap/wiki/CODAP-Data-Interactive-Plugin-API#example-attribute-list-get which says:

{
  "action": "get",
  "resource": "dataContext[DataCard2].collection[Measurements].attributeList"
}

return data of this form:

{
  "success": true,
  "values": [
      "SampleDate",
      "Height",
      "Age",
      "Flavor"
  ]
}

However, in our runtime, we found the returned values was structured like so:

[
    {
        "id": 8,
        "name": "y",
        "title": "y"
    },
    {
        "id": 9,
        "name": "timeAirborne",
        "title": "timeAirborne"
    },
    {
        "id": 12,
        "name": "launchSpeed",
        "title": "launchSpeed"
    },
    {
        "id": 13,
        "name": "launchHeight",
        "title": "launchHeight"
    },
    {
        "id": 14,
        "name": "sampleNumber",
        "title": "sampleNumber"
    }
]

Tagging @bfinzer and @matthew-blackman so they are aware

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