You are here

field_validation.schema.yml in Field Validation 8

config/schema/field_validation.schema.yml

File

config/schema/field_validation.schema.yml
View source
  1. field_validation.rule_set.*:
  2. type: config_entity
  3. label: 'Field validation rule set'
  4. mapping:
  5. name:
  6. type: string
  7. label: 'Name'
  8. label:
  9. type: string
  10. label: 'Label'
  11. entity_type:
  12. type: string
  13. label: 'Entity type'
  14. bundle:
  15. type: string
  16. label: 'Entity bundle'
  17. field_validation_rules:
  18. type: sequence
  19. sequence:
  20. type: mapping
  21. mapping:
  22. id:
  23. type: string
  24. label: 'ID'
  25. title:
  26. type: label
  27. label: 'Rule name'
  28. data:
  29. type: field_validation.rule.[%parent.id]
  30. label: 'Data'
  31. weight:
  32. type: integer
  33. label: 'Weight'
  34. uuid:
  35. type: string
  36. label: 'UUID'
  37. field_name:
  38. type: string
  39. label: 'Field name'
  40. column:
  41. type: string
  42. label: 'Field column'
  43. error_message:
  44. type: label
  45. label: 'Error message'
  46. field_validation.rule.*:
  47. type: mapping
  48. label: 'Field validation rule'
  49. field_validation.rule.blacklist_field_validation_rule:
  50. type: mapping
  51. label: 'Words blacklist validation rule'
  52. mapping:
  53. setting:
  54. type: string
  55. label: 'Blacklisted words'
  56. field_validation.rule.date_range_field_validation_rule:
  57. type: mapping
  58. label: 'Date range validation rule'
  59. mapping:
  60. min:
  61. type: string
  62. label: 'Minimum date'
  63. max:
  64. type: string
  65. label: 'Maximum date'
  66. cycle:
  67. type: string
  68. label: 'Cycle of date'
  69. field_validation.rule.email_field_validation_rule:
  70. type: mapping
  71. label: 'Email validation rule'
  72. field_validation.rule.integer_field_validation_rule:
  73. type: mapping
  74. label: 'Integer field validation rule'
  75. mapping:
  76. min:
  77. type: string
  78. label: 'Minimum value'
  79. max:
  80. type: string
  81. label: 'Maximum value'
  82. field_validation.rule.ip_field_validation_rule:
  83. type: mapping
  84. label: 'IP address validation rule'
  85. mapping:
  86. version:
  87. type: string
  88. label: 'IP Version'
  89. field_validation.rule.length_field_validation_rule:
  90. type: mapping
  91. label: 'Length field validation rule'
  92. mapping:
  93. min:
  94. type: string
  95. label: 'Minimum value'
  96. max:
  97. type: string
  98. label: 'Maximum value'
  99. field_validation.rule.must_be_empty_field_validation_rule:
  100. type: mapping
  101. label: 'Must be empty field validation rule'
  102. field_validation.rule.numeric_field_validation_rule:
  103. type: mapping
  104. label: 'Numeric field validation rule'
  105. mapping:
  106. min:
  107. type: string
  108. label: 'Minimum value'
  109. max:
  110. type: string
  111. label: 'Maximum value'
  112. step:
  113. type: string
  114. label: 'Step'
  115. field_validation.rule.phone_field_validation_rule:
  116. type: mapping
  117. label: 'Phone field validation rule'
  118. mapping:
  119. country:
  120. type: string
  121. label: 'Country'
  122. field_validation.rule.plain_text_field_validation_rule:
  123. type: mapping
  124. label: 'Plain text field validation rule'
  125. field_validation.rule.regex_field_validation_rule:
  126. type: mapping
  127. label: 'Regular expression field validation rule'
  128. mapping:
  129. setting:
  130. type: string
  131. label: 'Pattern'
  132. field_validation.rule.unique_field_validation_rule:
  133. type: mapping
  134. label: 'Unique field validation rule'
  135. mapping:
  136. scope:
  137. type: string
  138. label: 'Scope of unique'
  139. field_validation.rule.words_field_validation_rule:
  140. type: mapping
  141. label: 'Number of words field validation rule'
  142. mapping:
  143. min:
  144. type: string
  145. label: 'Minimum number of words'
  146. max:
  147. type: string
  148. label: 'Maximum number of words'