Module: SupplejackApi::SchemaDefinition

Extended by:
ActiveSupport::Concern
Included in:
SupplejackSchema
Defined in:
app/models/supplejack_api/schema_definition.rb

Defined Under Namespace

Modules: ClassMethods Classes: Field, Group, ModelField, MongoIndex, Namespace, Role, SchemaObject

Constant Summary collapse

ALLOWED_ATTRIBUTES =
{
  field: [:type, :search_value, :search_boost, :multi_value, :search_as, :store,
          :solr_name, :namespace, :namespace_field, :default_value, :date_format],
  group: [:fields, :includes],
  role: [:default, :field_restrictions, :record_restrictions, :admin],
  namespace: [:url],
  mongo_index: [:fields, :index_options],
  model_field: [:type, :field_options, :validation, :index_fields, :index_options,
                :search_value, :search_as, :store, :namespace]
}.freeze