# spellings-exact
serve pydantic_v2.BaseModel
service DaysService: post_day
service DaysService without its methods: TypeError
service FieldsService: post_field, post_thing
service FieldsService without its methods: TypeError
service PetsService: get_code, get_pet, list_counts, list_pets, literal, literal_model
service PetsService without its methods: TypeError
> GET /code
  get_code(invalid=None)
< 200 application/json "ab"
> GET /code?invalid=true
  get_code(invalid=True)
< ResponseValidationError: ['String should have at least 2 characters']
> GET /pets
  list_pets(invalid=None)
< 200 application/json [{"pet-type":"dog","bark":true},{"pet-type":"cat","name":"Mimi"}]
> GET /pets?invalid=true
  list_pets(invalid=True)
< ResponseValidationError: ['Field required']
> GET /counts
  list_counts(invalid=None)
< 200 application/json [1,2]
> GET /counts?invalid=true
  list_counts(invalid=True)
< ResponseValidationError: ['Input should be greater than or equal to 0']
> GET /pets/1?limit=5&code=ab&codes=ab&codes=cde&step=1.5&raw=eA==&day=2024-01-02&filter[term]=a
  get_pet(petId=1, limit=5, code='ab', codes=['ab', 'cde'], step=Decimal('1.5'), raw='x', day=datetime.date(2024, 1, 2), filter="Query{'term': 'a'}", pair=None, label=None, pet=None, tag=None)
< 200 application/json {"pet-type":"cat","name":"Mimi"}
> GET /pets/2
  get_pet(petId=2, limit=10, code=None, codes=None, step=None, raw=None, day=None, filter=None, pair=None, label=None, pet=None, tag=None)
< 200 application/json {"pet-type":"dog","bark":true}
> GET /pets/0
< 422 application/json [{"type": "greater_than_equal", "loc": ["path", "petId"]}]
> GET /pets/1?limit=0
< 422 application/json [{"type": "greater_than_equal", "loc": ["query", "limit"]}]
> GET /pets/1?code=a
< 422 application/json [{"type": "string_too_short", "loc": ["query", "code"]}]
> GET /pets/1?codes=abcdef
< 422 application/json [{"type": "string_too_long", "loc": ["query", "codes", 0]}]
> GET /pets/1?step=1.2
< 422 application/json [{"type": "multiple_of", "loc": ["query", "step"]}]
> GET /pets/1?day=tomorrow
< 422 application/json [{"type": "date_from_datetime_parsing", "loc": ["query", "day"]}]
> POST /fields
  post_field(body="FieldModel{'name': 'x'}")
< 200 application/json {"echo":"x"}
> POST /days
  post_day(principal=None, body=Day(root=datetime.date(2024, 1, 2)))
< 200 application/json "2024-01-02"
> POST /days
< 422 application/json [{"type": "date_from_datetime_parsing", "loc": ["body"]}]
> GET /pets/1?pair=a,1&label=ab&pet=%7B%22pet-type%22%3A%22dog%22%2C%22bark%22%3Afalse%7D
  get_pet(petId=1, limit=10, code=None, codes=None, step=None, raw=None, day=None, filter=None, pair="Pair{'root': ['a', '1']}", label='ab', pet='Pet{\'root\': "Dog{\'pet_type\': \'dog\', \'bark\': False}"}', tag=None)
< 200 application/json {"pet-type":"cat","name":"Mimi"}
> GET /pets/1?pair=,1
< 422 application/json [{"type": "string_too_short", "loc": ["query", "pair", 0, "constrained-str"]}, {"type": "int_parsing", "loc": ["query", "pair", 0, "constrained-int"]}]
> GET /pets/1?label=xa
< 422 application/json [{"type": "string_pattern_mismatch", "loc": ["query", "label"]}]
> GET /pets/1?pet=%7B%22pet-type%22%3A%22dog%22%7D
< 422 application/json [{"type": "missing", "loc": ["query", "pet", "dog", "bark"]}]
> GET /pets/1?tag=ab
  get_pet(petId=1, limit=10, code=None, codes=None, step=None, raw=None, day=None, filter=None, pair=None, label=None, pet=None, tag="Tag{'root': 'ab'}")
< 200 application/json {"pet-type":"cat","name":"Mimi"}
> GET /pets/1?tag=xa
< 422 application/json [{"type": "string_pattern_mismatch", "loc": ["query", "tag"]}]
> POST /days
  authorize ['bearer']
  post_day(principal='bearer', body=Day(root=datetime.date(2024, 1, 3)))
< 200 application/json "2024-01-03"
> GET /literal?modes=a,a&named=x&listed=y
  literal(modes=['a', 'a'], named=Annotated(root='x'), listed=List(root='y'))
< 204 - b''
> GET /literal?modes=b
< 422 application/json [{"type": "literal_error", "loc": ["query", "modes", 0]}]
> POST /things
  post_thing(body=Thing(w=2))
< 200 application/json {"w":2}
> POST /things
< 422 application/json [{"type": "int_parsing", "loc": ["body", "w"]}]
> GET /literal-model?modes=b,b
  literal_model(modes=['b', 'b'])
< 204 - b''
