You are here

validation.yml in UI Patterns 8

tests/src/fixtures/validation.yml

File

tests/src/fixtures/validation.yml
View source
  1. - pattern:
  2. id: 'not valid Name'
  3. messages:
  4. - "id: This value is not valid."
  5. - "label: This value should not be null."
  6. - "base path: This value should not be null."
  7. - "file name: This value should not be null."
  8. - "provider: This value should not be null."
  9. - "theme hook: This value should not be null."
  10. - pattern:
  11. id: 'id'
  12. messages:
  13. - "id: This value is not valid."
  14. - "label: This value should not be null."
  15. - "base path: This value should not be null."
  16. - "file name: This value should not be null."
  17. - "provider: This value should not be null."
  18. - "theme hook: This value should not be null."
  19. - pattern:
  20. id: pattern_id
  21. label: label
  22. description: description
  23. fields:
  24. fass:
  25. name: 'not valid name'
  26. messages:
  27. - "base path: This value should not be null."
  28. - "file name: This value should not be null."
  29. - "provider: This value should not be null."
  30. - "fields.0.name: This value is not valid."
  31. - "fields.0.label: This value should not be null."
  32. - "theme hook: This value should not be null."
  33. - pattern:
  34. id: pattern_id
  35. label: label
  36. description: description
  37. fields:
  38. type:
  39. type: text
  40. label: type
  41. description: description
  42. preview: preview
  43. messages:
  44. - "base path: This value should not be null."
  45. - "file name: This value should not be null."
  46. - "provider: This value should not be null."
  47. - "fields.0.name: This value should not be null."
  48. - "theme hook: This value should not be null."
  49. - pattern:
  50. id: pattern_id
  51. label: label
  52. description: description
  53. base path: /path/to/pattern
  54. file name: pattern_id.ui_patterns.yml
  55. theme hook: pattern_pattern_id
  56. provider: module
  57. fields:
  58. -
  59. name: camelName
  60. label: Label
  61. type: text
  62. description: description
  63. preview: preview
  64. -
  65. name: name
  66. label: Label
  67. messages: []