From dae4f7978371cc9ce6405b89e400ca7d5be6938c Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Thu, 12 Dec 2013 10:19:36 -0800
Subject: [PATCH] Issue #1973522 by vijaycs85, chr.fritsch, piyuesh23: Provide
 config schema to field types and storage in file module.

---
 .../file/config/schema/file.schema.yml        | 40 ++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/core/modules/file/config/schema/file.schema.yml b/core/modules/file/config/schema/file.schema.yml
index 91e5f3c0abd8..2c0948417a5a 100644
--- a/core/modules/file/config/schema/file.schema.yml
+++ b/core/modules/file/config/schema/file.schema.yml
@@ -1,4 +1,4 @@
-# Schema for the configuration files of the file module.
+# Schema for the configuration files of the File module.
 
 file.settings:
   type: mapping
@@ -21,3 +21,41 @@ file.settings:
         directory:
           type: path
           label: 'Directory'
+
+field.file.settings:
+  type: mapping
+  label: 'File settings'
+  mapping:
+    display_field:
+      type: boolean
+      label: 'Enable Display field'
+    display_default:
+      type: boolean
+      label: 'Files displayed by default'
+    uri_scheme:
+      type: string
+      label: 'Upload destination'
+
+field.file.value:
+  type: sequence
+  label: 'Default value'
+  sequence:
+    - type: string
+      label: 'Value'
+
+field.file.instance_settings:
+  type: mapping
+  label: 'File settings'
+  mapping:
+    file_directory:
+      type: string
+      label: 'File directory'
+    file_extensions:
+      type: string
+      label: 'Allowed file extensions'
+    max_filesize:
+      type: string
+      label: 'Maximum upload size'
+    description_field:
+      type: boolean
+      label: 'Enable Description field'
-- 
GitLab