image_to_media_swapper-2.x-dev/config/schema/image_to_media_swapper.schema.yml
config/schema/image_to_media_swapper.schema.yml
# Schema for Image to Media Swapper module configuration
image_to_media_swapper.security_settings:
type: config_object
label: 'Image to Media Swapper security settings'
mapping:
dependencies:
type: config_dependencies
label: 'Dependencies'
enable_remote_downloads:
type: boolean
label: 'Enable remote file downloads'
max_file_size:
type: integer
label: 'Maximum file size in MB'
download_timeout:
type: integer
label: 'Download timeout in seconds'
restrict_domains:
type: boolean
label: 'Restrict allowed domains'
allowed_domains_list:
type: text
label: 'Allowed domains list (raw text)'
allowed_domains:
type: sequence
label: 'Allowed domains array'
sequence:
type: string
label: 'Domain'
allowed_extensions:
type: sequence
label: 'Allowed file extensions'
sequence:
type: string
label: 'File extension'
allowed_extensions_array:
type: sequence
label: 'Allowed file extensions array'
sequence:
type: string
label: 'File extension'
allowed_mime_types_array:
type: sequence
label: 'Allowed MIME types array'
sequence:
type: string
label: 'MIME type'
block_private_ips:
type: boolean
label: 'Block private IP addresses'
require_https:
type: boolean
label: 'Require HTTPS'
max_redirects:
type: integer
label: 'Maximum redirects allowed'
disable_batch_processing:
type: boolean
label: 'Disable batch processing'
media_type_mappings:
type: mapping
label: 'MIME type to media bundle mappings'
mapping:
'[*]':
type: string
label: 'Media bundle name'
field_mappings:
type: mapping
label: 'Media bundle to field name mappings'
mapping:
'[*]':
type: string
label: 'Field name'
default_attributes:
type: mapping
label: 'Default attributes by media bundle'
mapping:
'[*]':
type: string
label: 'Comma-separated attribute names'
