summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJian He2017-04-14 06:17:58 (GMT)
committerJian He2017-04-14 06:17:58 (GMT)
commitecb147ee66285ae143add0482d61e09e755b932b (patch)
tree4fefaecaad881c2f68a7d8f5eb4adc19b0e93c55
parentee9ea0acabddcbf11fd3aa237b9930b1b0bf4d9b (diff)
Fix schema.
-rw-r--r--config/pinyin.schema.yml7
-rw-r--r--config/schema/pinyin.schema.yml15
-rw-r--r--pinyin.info.yml5
3 files changed, 18 insertions, 9 deletions
diff --git a/config/pinyin.schema.yml b/config/pinyin.schema.yml
deleted file mode 100644
index d609d83..0000000
--- a/config/pinyin.schema.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-field.storage_settings.pinyin_shortcode:
- type: field.storage_settings.string
- label: 'Pinyin shortcode settings'
- mapping:
- max_length:
- type: integer
- label: 'Maximum length'
diff --git a/config/schema/pinyin.schema.yml b/config/schema/pinyin.schema.yml
new file mode 100644
index 0000000..6416185
--- /dev/null
+++ b/config/schema/pinyin.schema.yml
@@ -0,0 +1,15 @@
+field.storage_settings.pinyin_shortcode:
+ type: field.storage_settings.string
+ label: 'Pinyin shortcode settings'
+
+field.field_settings.pinyin_shortcode:
+ type: mapping
+ label: 'Pinyin shortcode settings'
+
+field.value.uri:
+ type: mapping
+ label: 'Default value'
+ mapping:
+ value:
+ type: string
+ label: 'Value'
diff --git a/pinyin.info.yml b/pinyin.info.yml
index ca94566..6c79e5b 100644
--- a/pinyin.info.yml
+++ b/pinyin.info.yml
@@ -1,4 +1,5 @@
-name: Pinyin Short Code
+name: Pinyin Shortcode
type: module
-description: 'Generate pinyin short code(拼音简码).'
+description: 'Provides pinyin shortcode(拼音简码) field type.'
+package: Field types
core: 8.x