Skip to content

Adds 'any' scalar, nullable optionals, wildcards to Picoschema.#407

Merged
mbleigh merged 5 commits into
mainfrom
pico-any-nulls
Jun 14, 2024
Merged

Adds 'any' scalar, nullable optionals, wildcards to Picoschema.#407
mbleigh merged 5 commits into
mainfrom
pico-any-nulls

Conversation

@mbleigh
Copy link
Copy Markdown
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. Adds 'any' scalar, nullable optionals, wildcards 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants