parameters: {
k.to_s.underscore => {
type: "object",
- required: true,
+ required: false,
location: "query",
properties: object_properties
}
},
+ request: {
+ required: false,
+ properties: {
+ k.to_s => {
+ "$ref" => k.to_s
+ }
+ }
+ },
response: {
"$ref" => k.to_s
},
},
k.to_s.underscore => {
type: "object",
- required: true,
+ required: false,
location: "query",
properties: object_properties
}
},
+ request: {
+ required: false,
+ properties: {
+ k.to_s => {
+ "$ref" => k.to_s
+ }
+ }
+ },
response: {
"$ref" => k.to_s
},
ctl_class.action_methods.include? action
method = {
id: "arvados.#{k.to_s.underscore.pluralize}.#{action}",
- path: route.path.sub('/arvados/v1/','').sub('(.:format)','').sub(/:(uu?)id/,'{uuid}'),
+ path: route.path.sub('/arvados/v1/','').sub('(.:format)','').sub(/:(uu)?id/,'{uuid}'),
httpMethod: httpMethod,
description: "#{route.defaults[:action]} #{k.to_s.underscore.pluralize}",
parameters: {},