class CreatePostInput(InputClass): text: str user_id: str ... @handler.post('/post') def create_post(input: CreatePostInput): ...