Use lowercase SchemaType enum values
This fixes the serialized values of the SchemaType enum to follow the swagger doc referenced in comments, and the json-schema spec upon which the swagger spec is based.
This change makes this package compatible with the myriad other tools (like AJV) that allow the definition of validators, types, etc using standard json-schema.
I've tested sending lowercased values to gemini, and this appears to work perfectly, despite the TypeScript errors that this PR resolves.
Thanks! Can you do 2 things:
Run yarn docs to regenerate reference docs.
Run yarn changeset to generate a changeset file (choose "minor" as this causes an API surface change).
Hi @hsubox76 - thanks for reiterating what y'all already had in the contributing docs, and sorry for not reading those first! 🤦🏼
I've updated and rebased this PR accordingly.
Just wanted to kindly nudge this, at least to let the unit tests run. Thanks!
I'm waiting for this!
Is this PR solving https://github.com/google-gemini/generative-ai-js/issues/153