From 904989797f0e70dad2d4a2da8ed05693ad1619bd Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 14 Jan 2014 08:37:50 -0800 Subject: [PATCH] Lowercase model name in discovery document, like the real parameter name. closes #1869 --- services/api/app/controllers/arvados/v1/schema_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/api/app/controllers/arvados/v1/schema_controller.rb b/services/api/app/controllers/arvados/v1/schema_controller.rb index 1d50daa4ce..0baa865502 100644 --- a/services/api/app/controllers/arvados/v1/schema_controller.rb +++ b/services/api/app/controllers/arvados/v1/schema_controller.rb @@ -243,7 +243,7 @@ class Arvados::V1::SchemaController < ApplicationController request: { required: false, properties: { - k.to_s => { + k.to_s.underscore => { "$ref" => k.to_s } } @@ -277,7 +277,7 @@ class Arvados::V1::SchemaController < ApplicationController request: { required: false, properties: { - k.to_s => { + k.to_s.underscore => { "$ref" => k.to_s } } -- 2.30.2