canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

API documentation - RubricCriterion reference is inconsistent

Open onomou opened this issue 1 year ago • 0 comments

At Rubrics - Create and Rubrics - Update, the rubric[criteria] description says An indexed Hash of RubricCriteria objects where the keys are integer ids and the values are the RubricCriteria objects, but the actual object is RubricCriterion.

Expected behavior:

An indexed Hash of RubricCriterion objects where the keys are integer ids and the values are the RubricCriterion objects

API Documentation

https://github.com/instructure/canvas-lms/blob/6ad516e4253273b6482b3fbc3aeb16550ae2a598/app/controllers/rubrics_controller.rb#L117

https://github.com/instructure/canvas-lms/blob/6ad516e4253273b6482b3fbc3aeb16550ae2a598/app/controllers/rubrics_controller.rb#L163

Rubric Controller Definition

https://github.com/instructure/canvas-lms/blob/6ad516e4253273b6482b3fbc3aeb16550ae2a598/app/controllers/rubrics_api_controller.rb#L88-L118

onomou avatar Dec 29 '23 15:12 onomou