[ 'openAiApiKey' => new Assert\Optional([ new Assert\Type('string'), new ValidApiKey('openAI') ]), 'googleAiApiKey' => new Assert\Optional([ new Assert\Type('string'), new ValidApiKey('googleAI') ]), 'openRouterApiKey' => new Assert\Optional([ new Assert\Type('string'), new ValidApiKey('openRouter') ]), 'textModel' => new Assert\Optional([ new Assert\Type('string'), new Assert\NotBlank(), ]), 'imageModel' => new Assert\Optional([ new Assert\Type('string'), new Assert\NotBlank(), ]), ], 'allowExtraFields' => true, ]); return $validator->validate($values, $constraint); } }