# security-templates
serve pydantic_v2.BaseModel
service DefaultService: get_custom, get_maybe, get_session, put_pet
service DefaultService without its methods: TypeError
service PetsService: list_pets
service PetsService without its methods: TypeError
service PublicService: get_public
service PublicService without its methods: TypeError
build no-authorize: TypeError: An authorize callback is required because the selected operations use security
build missing-method: AttributeError: 'object' object has no attribute 'get_maybe'
build sync-in-async: TypeError: The default.get_maybe method of GET /maybe is a plain method, but the operation's handler mode needs a coroutine function
build async-in-sync: TypeError: The default.put_pet method of PUT /pets/{petId} is a coroutine function, but the operation's handler mode needs a plain method
build operation-dependencies-unknown: ValueError: operation_dependencies names no operation of this router: /paths/~1pets/get
build operation-dependencies-none: TypeError: operation_dependencies['list_pets'] must be a sequence of Depends(...) values
build operation-dependencies-items: TypeError: operation_dependencies['list_pets'] must be a sequence of Depends(...) values
build group public: ok
build group pets: ok
build options-unique-id: ok
build options-unique-id-result: ok
app default
> GET /maybe
  global /maybe
< 401 application/json {"detail":"Not authenticated"}
< www-authenticate: Bearer
> GET /pets
  global /pets
  authorize [(('api_key', ()),)]
    credentials ['api_key=abc']
  list_pets(principal='user-api_key')
< 200 application/json ["rex"]
