The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Hi everyone,
I'm trying to create a (somewhat) up-to-date OpenAPI3 specification (here) for the Canvas API, to use it with an OpenAPI3 Haskell code generator (here) to generate a Haskell client library for the API.
My questions:
Is it specified somewhere which fields in the JSON objects, that are returned from API calls, can be null and which cannot?
Is the list of fields marked with Optional: in the description of each object complete?
What is the difference between nullable fields and optional fields?
For example, in the documentation of a Profile object:
// user, sample "sortable_name": "user, sample", "title": null, "bio": null,
...
// Optional: This field is only returned in certain API calls, and will return
// the IANA time zone name of the user's preferred timezone.
"time_zone": "America/Denver",
Can I correctly infer from the documentation that
Thank you in advance!
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in