Skip to content

Conversation

@mbleigh
Copy link
Collaborator

@mbleigh mbleigh commented Jun 13, 2024

Three quality-of-life improvements for Picoschema:

  1. You can now specify any as a scalar type and it will allow anything.
  2. When a field is marked as optional, Picoschema will also mark it as nullable. This fixes an annoying situation where LLMs return null values instead of omitting keys.
  3. You can have a wildcard field in an object using (*) as a key.

Checklist (if applicable):

  • Tested (manually, unit tested, etc.)
  • Changelog updated
  • Docs updated
@mbleigh mbleigh requested review from MichaelDoyle and pavelgj June 13, 2024 19:33
@mbleigh mbleigh changed the title Adds 'any' scalar, nullable optionals to Picoschema. Jun 13, 2024
@mbleigh mbleigh merged commit 3081fbb into main Jun 14, 2024
@mbleigh mbleigh deleted the pico-any-nulls branch June 14, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants