Merge pull request #245 from diegosouzapw/fix/issue-244-optional-field-gemini-schema

fix(gemini): remove "optional" field from JSON schema — fixes #244
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-03-08 17:38:05 -03:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -1693,6 +1693,8 @@ gh release create v2.0.0 --title "v2.0.0" --generate-notes
</picture>
</a>
> 📈 **[View live star history on star-history.com](https://star-history.com/#diegosouzapw/OmniRoute&Date)** — The embedded chart may be cached. Click the link for real-time data.
---
## 🙏 Acknowledgments

View File

@@ -41,6 +41,8 @@ export const UNSUPPORTED_SCHEMA_CONSTRAINTS = [
"else",
"contentMediaType",
"contentEncoding",
// Non-standard schema fields (not recognized by Gemini API)
"optional",
// UI/Styling properties (from Cursor tools - NOT JSON Schema standard)
"cornerRadius",
"fillColor",