eiriktsarpalis / stj-schema-mapper

A component mapping System.Text.Json contracts to JSON schema documents
MIT License
5 stars 1 forks source link

Always use type keyword in enum schemas #1

Closed eiriktsarpalis closed 5 months ago

eiriktsarpalis commented 5 months ago

Following feedback from https://github.com/microsoft/semantic-kernel/pull/5998#discussion_r1580682282 I'm changing the generated schema for enum types to always include the type keyword. Even though this is redundant for the case of enum schemas, this was reported to create problems when used with Gemini APIs.

cc @stephentoub @captainsafia @SergeyMenshykh @Krzysztof318