# discriminator-values-unmapped typing.TypedDict
  > GET https://api.example.com/levels
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  level 1 = {'level': 1, 'since': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/levels
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  level 2 = {'level': 2, 'certified': datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc)}
  > GET https://api.example.com/levels
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  level named as its schema ! DecodeError: DecodeError(status_code=200, operation_id='getLevel', reason='invalid_value') [operation_id='getLevel', body_bytes=b'{"level":"Basic","since":"2024-01-02"}', truncated=False, cause=KeyError('Basic')] invalid_value
  > GET https://api.example.com/levels
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  level true is no integer ! DecodeError: DecodeError(status_code=200, operation_id='getLevel', reason='invalid_value') [operation_id='getLevel', body_bytes=b'{"level":true,"since":"2024-01-02"}', truncated=False, cause=KeyError(True)] invalid_value
  > GET https://api.example.com/ranks
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  rank 1 = {'rank': 1, 'since': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/ranks
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  rank 2 = {'rank': 2, 'certified': datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc)}
  > GET https://api.example.com/switches
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  switch on = {'enabled': True, 'since': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/switches
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  switch off = {'enabled': False, 'until': datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc)}
  > GET https://api.example.com/switches
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  switch 1 is no true ! DecodeError: DecodeError(status_code=200, operation_id='getSwitch', reason='invalid_value') [operation_id='getSwitch', body_bytes=b'{"enabled":1,"since":"2024-01-02"}', truncated=False, cause=KeyError(1)] invalid_value
  > GET https://api.example.com/switches
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  switch 0 is no false ! DecodeError: DecodeError(status_code=200, operation_id='getSwitch', reason='invalid_value') [operation_id='getSwitch', body_bytes=b'{"enabled":0,"until":"2024-01-02T03:04:05Z"}', truncated=False, cause=KeyError(0)] invalid_value
  > GET https://api.example.com/mixed
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mixed integer = {'code': 1, 'since': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/mixed
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mixed boolean = {'code': True, 'until': datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc)}
  > GET https://api.example.com/odd
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  odd plain = {'kind': 'plain', 'since': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/odd
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  odd object ! DecodeError: DecodeError(status_code=200, operation_id='getOdd', reason='invalid_value') [operation_id='getOdd', body_bytes=b'{"kind":{"a":1},"until":"2024-01-02T03:04:05Z"}', truncated=False, cause=KeyError({'a': 1})] invalid_value
  > GET https://api.example.com/animals
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  animal cat = {'kind': 'cat', 'born': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/animals
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  animal dog = {'kind': 'dog', 'fed': datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc)}
  > GET https://api.example.com/felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  feline cat = {'kind': 'cat', 'born': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  feline kitty = {'kind': 'kitty', 'born': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  feline named as its schema ! DecodeError: DecodeError(status_code=200, operation_id='getFeline', reason='invalid_value') [operation_id='getFeline', body_bytes=b'{"kind":"Feline","born":"2024-01-02"}', truncated=False, cause=KeyError('Feline')] invalid_value
  > GET https://api.example.com/felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  feline dog = {'kind': 'dog', 'fed': datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc)}
  > GET https://api.example.com/mapped-felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mapped feline cat = {'kind': 'cat', 'born': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/mapped-felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mapped feline kitty = {'kind': 'kitty', 'born': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/mapped-felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mapped feline dog = {'kind': 'dog', 'fed': datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc)}
  > GET https://api.example.com/grades
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  grade 1 = {'grade': 1, 'since': datetime.date(2024, 1, 2)}
  > GET https://api.example.com/grades
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  grade 2 = {'grade': 2, 'until': datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc)}
  > GET https://api.example.com/grades
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  grade '1' is no integer ! DecodeError: DecodeError(status_code=200, operation_id='getGrade', reason='invalid_value') [operation_id='getGrade', body_bytes=b'{"grade":"1","since":"2024-01-02"}', truncated=False, cause=KeyError('1')] invalid_value
# discriminator-values-unmapped dataclasses.dataclass
  > GET https://api.example.com/levels
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  level 1 = Basic(level=1, since=datetime.date(2024, 1, 2))
  > GET https://api.example.com/levels
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  level 2 = Expert(level=2, certified=datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc))
  > GET https://api.example.com/levels
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  level named as its schema ! DecodeError: DecodeError(status_code=200, operation_id='getLevel', reason='invalid_value') [operation_id='getLevel', body_bytes=b'{"level":"Basic","since":"2024-01-02"}', truncated=False, cause=KeyError('Basic')] invalid_value
  > GET https://api.example.com/levels
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  level true is no integer ! DecodeError: DecodeError(status_code=200, operation_id='getLevel', reason='invalid_value') [operation_id='getLevel', body_bytes=b'{"level":true,"since":"2024-01-02"}', truncated=False, cause=KeyError(True)] invalid_value
  > GET https://api.example.com/ranks
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  rank 1 = Junior(rank=1, since=datetime.date(2024, 1, 2))
  > GET https://api.example.com/ranks
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  rank 2 = Senior(rank=2, certified=datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc))
  > GET https://api.example.com/switches
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  switch on = On(enabled=True, since=datetime.date(2024, 1, 2))
  > GET https://api.example.com/switches
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  switch off = Off(enabled=False, until=datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc))
  > GET https://api.example.com/switches
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  switch 1 is no true ! DecodeError: DecodeError(status_code=200, operation_id='getSwitch', reason='invalid_value') [operation_id='getSwitch', body_bytes=b'{"enabled":1,"since":"2024-01-02"}', truncated=False, cause=KeyError(1)] invalid_value
  > GET https://api.example.com/switches
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  switch 0 is no false ! DecodeError: DecodeError(status_code=200, operation_id='getSwitch', reason='invalid_value') [operation_id='getSwitch', body_bytes=b'{"enabled":0,"until":"2024-01-02T03:04:05Z"}', truncated=False, cause=KeyError(0)] invalid_value
  > GET https://api.example.com/mixed
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mixed integer = Counted(code=1, since=datetime.date(2024, 1, 2))
  > GET https://api.example.com/mixed
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mixed boolean = Flagged(code=True, until=datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc))
  > GET https://api.example.com/odd
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  odd plain = Plain(kind='plain', since=datetime.date(2024, 1, 2))
  > GET https://api.example.com/odd
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  odd object ! DecodeError: DecodeError(status_code=200, operation_id='getOdd', reason='invalid_value') [operation_id='getOdd', body_bytes=b'{"kind":{"a":1},"until":"2024-01-02T03:04:05Z"}', truncated=False, cause=KeyError({'a': 1})] invalid_value
  > GET https://api.example.com/animals
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  animal cat = Cat(kind='cat', born=datetime.date(2024, 1, 2))
  > GET https://api.example.com/animals
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  animal dog = Dog(kind='dog', fed=datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc))
  > GET https://api.example.com/felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  feline cat = Feline(kind='cat', born=datetime.date(2024, 1, 2))
  > GET https://api.example.com/felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  feline kitty = Feline(kind='kitty', born=datetime.date(2024, 1, 2))
  > GET https://api.example.com/felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  feline named as its schema ! DecodeError: DecodeError(status_code=200, operation_id='getFeline', reason='invalid_value') [operation_id='getFeline', body_bytes=b'{"kind":"Feline","born":"2024-01-02"}', truncated=False, cause=KeyError('Feline')] invalid_value
  > GET https://api.example.com/felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  feline dog = Canine(kind='dog', fed=datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc))
  > GET https://api.example.com/mapped-felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mapped feline cat = MappedFeline(kind='cat', born=datetime.date(2024, 1, 2))
  > GET https://api.example.com/mapped-felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mapped feline kitty = MappedFeline(kind='kitty', born=datetime.date(2024, 1, 2))
  > GET https://api.example.com/mapped-felines
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  mapped feline dog = MappedCanine(kind='dog', fed=datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc))
  > GET https://api.example.com/grades
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  grade 1 = Pass(grade=1, since=datetime.date(2024, 1, 2))
  > GET https://api.example.com/grades
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  grade 2 = Fail(grade=2, until=datetime.datetime(2024, 1, 2, 3, 4, 5, tzinfo=datetime.timezone.utc))
  > GET https://api.example.com/grades
    [host: api.example.com, accept-encoding: gzip, deflate, accept: application/json] b''
  grade '1' is no integer ! DecodeError: DecodeError(status_code=200, operation_id='getGrade', reason='invalid_value') [operation_id='getGrade', body_bytes=b'{"grade":"1","since":"2024-01-02"}', truncated=False, cause=KeyError('1')] invalid_value
