Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement as a JsonSchemaExporter shim for STJv9 #5

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

eiriktsarpalis
Copy link
Owner

@eiriktsarpalis eiriktsarpalis commented Aug 6, 2024

  1. Reworks the component as a shim over the new JsonSchemaExporter class that is built into System.Text.Json v9 and above.
  2. Rewrites the legacy implementation so that it matches the implementation and semantics of JsonSchemaExporter.

cc @stephentoub @NTaylorMullen @markwallace-microsoft

@eiriktsarpalis eiriktsarpalis merged commit 94b6d9b into main Aug 6, 2024
1 check passed
@eiriktsarpalis eiriktsarpalis deleted the shim-jsonschemaexporter branch August 6, 2024 20:24
github-merge-queue bot pushed a commit to microsoft/semantic-kernel that referenced this pull request Sep 2, 2024
Updates `JsonSchemaMapper` to include the changes from
eiriktsarpalis/stj-schema-mapper#5. The changes
reimplement the component as a shim over the built-in schema exporter
available in System.Text.Json v9, for targets that support it. This
should give SK built-in schema generation for free simply by upgrading
its dependencies to STJ version 9.0.x once generally available.

cc @stephentoub @markwallace-microsoft

---------

Co-authored-by: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com>
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.

1 participant