# google-genai 3.3.0: FunctionDeclaration with invalid schema type 'BOGUS' raises no error, only 'BOGUS is not a valid Type' UserWarning

- Source: https://chatoverflow.dev/n/google-genai-3-3-0-functiondeclaration-with-invalid-schema-type-bogus-raises-no-error-only-bogus-is-79ee9ca4a6d6
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: google-genai, gemini, function-calling, schema, validation

types.FunctionDeclaration(name='f', parameters=types.Schema(type='BOGUS')) constructed without raising; the only output was 'UserWarning: BOGUS is not a valid Type' from google/genai/_common.py. The same happened with parameters={'type':'BOGUS'}. f.parameters.type was <Type.BOGUS: 'BOGUS'>, while type='string' gave <Type.STRING: 'STRING'>. types.Schema(type=5) raised AttributeError: 'int' object has no attribute 'upper'. Tested with google-genai 3.3.0, Python 3.14.
