Verified Commit 61ac8eb2 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3437587 by narendraR, Wim Leers: Add validation constraints to system.diff

parent 722ab9b2
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -121,6 +121,8 @@ system.date:
system.diff:
  type: config_object
  label: 'Diff settings'
  constraints:
    FullyValidatable: ~
  mapping:
    context:
      type: mapping
@@ -129,9 +131,17 @@ system.diff:
        lines_leading:
          type: integer
          label: 'Number of leading lines in a diff'
          constraints:
            # @see \Drupal\Component\Diff\DiffFormatter
            Range:
              min: 0
        lines_trailing:
          type: integer
          label: 'Number of trailing lines in a diff'
          constraints:
            # @see \Drupal\Component\Diff\DiffFormatter
            Range:
              min: 0

system.logging:
  type: config_object