From 40b45c4aef95adb7e2e4519c29f413b58aea2280 Mon Sep 17 00:00:00 2001 From: Duane Johnson Date: Thu, 31 Jul 2014 15:04:11 -0600 Subject: [PATCH] fix 'assignment_visibility' API doc type Swagger fails to generate code for pandarus / live API docs because assignment_visibility array does not specify a type. This sets the type to 'integer'. Fixes SIS-400 Change-Id: I0a675dc51907d1a64993a36bed94d022deae3dda Reviewed-on: https://gerrit.instructure.com/38575 Tested-by: Jenkins Reviewed-by: Ken Romney Product-Review: Duane Johnson QA-Review: Jeremy Putnam --- app/controllers/assignments_api_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/assignments_api_controller.rb b/app/controllers/assignments_api_controller.rb index b64b1471493..7011d6964f9 100644 --- a/app/controllers/assignments_api_controller.rb +++ b/app/controllers/assignments_api_controller.rb @@ -459,7 +459,8 @@ # "assignment_visibility": { # "description": "(Optional) If 'assignment_visibility' is included in the 'include' parameter, includes an array of student IDs who can see this assignment.", # "example": "[137,381,572]", -# "type": "array" +# "type": "array", +# "items": {"type": "integer"} # } # } # }