X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c25f36a027799752c6aea67abad3bfe7e33aa070..0df5f0feeced5bff0adfb806dae2d3811257827f:/services/api/app/controllers/arvados/v1/schema_controller.rb diff --git a/services/api/app/controllers/arvados/v1/schema_controller.rb b/services/api/app/controllers/arvados/v1/schema_controller.rb index 2d0bc114fb..8ff2a97c46 100644 --- a/services/api/app/controllers/arvados/v1/schema_controller.rb +++ b/services/api/app/controllers/arvados/v1/schema_controller.rb @@ -3,15 +3,15 @@ # SPDX-License-Identifier: AGPL-3.0 class Arvados::V1::SchemaController < ApplicationController - skip_before_filter :catch_redirect_hint - skip_before_filter :find_objects_for_index - skip_before_filter :find_object_by_uuid - skip_before_filter :load_filters_param - skip_before_filter :load_limit_offset_order_params - skip_before_filter :load_read_auths - skip_before_filter :load_where_param - skip_before_filter :render_404_if_no_object - skip_before_filter :require_auth_scope + skip_before_action :catch_redirect_hint + skip_before_action :find_objects_for_index + skip_before_action :find_object_by_uuid + skip_before_action :load_filters_param + skip_before_action :load_limit_offset_order_params + skip_before_action :load_read_auths + skip_before_action :load_where_param + skip_before_action :render_404_if_no_object + skip_before_action :require_auth_scope include DbCurrentTime @@ -50,6 +50,7 @@ class Arvados::V1::SchemaController < ApplicationController defaultTrashLifetime: Rails.application.config.default_trash_lifetime, blobSignatureTtl: Rails.application.config.blob_signature_ttl, maxRequestSize: Rails.application.config.max_request_size, + maxItemsPerResponse: Rails.application.config.max_items_per_response, dockerImageFormats: Rails.application.config.docker_image_formats, crunchLogBytesPerEvent: Rails.application.config.crunch_log_bytes_per_event, crunchLogSecondsBetweenEvents: Rails.application.config.crunch_log_seconds_between_events, @@ -133,6 +134,14 @@ class Arvados::V1::SchemaController < ApplicationController object_properties[col.name] = { type: k.serialized_attributes[col.name].object_class.to_s } + elsif k.attribute_types[col.name].is_a? JsonbType::Hash + object_properties[col.name] = { + type: Hash.to_s + } + elsif k.attribute_types[col.name].is_a? JsonbType::Array + object_properties[col.name] = { + type: Array.to_s + } else object_properties[col.name] = { type: col.type