test:
  description: "A bunch of schema fields with the wrong type"
  errors:
    expected:
     - "yamale: .* is not a "
     - "yamale: .*: Unexpected element"
     - "Length of .* is greater than 15"
    count: 13
---
interfaces:
  GigabitEthernet1/0/0:
    description: 1234
    lcp: True
    mac: "0001.0203.0405"
    addresses: [ 1234, "hello world", 192.0.2.1, 2001:db8::1 ]
    sub-interfaces:
      100:
        description: [ "a", "list" ]
        encapsulation:
          dot1q: "hello world"

  GigabitEthernet1/0/1:
    mtu: 1500
    lcp: "a234567890123456"
    sub-interfaces:
      "string":
        description: "the sub-int key should be an int"

garbage:
  description: "There's no 'garbage' scope"

loopback:
  loop0:
    description: "The toplevel scope is 'loopbacks' plural"