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

Expose a schema transformer on AIJsonSchemaCreateOptions. #5677

Merged
merged 7 commits into from
Nov 20, 2024

Conversation

eiriktsarpalis
Copy link
Member

@eiriktsarpalis eiriktsarpalis commented Nov 20, 2024

With https://github.com/eiriktsarpalis/stj-schema-mapper being migrated to M.E.AI and archived, AIJsonUtilities has become the de facto standard API for exporting JSON schemas that's available in both .NET 8 and .NET 9. Partner teams that have been relying on stj-schema-mapper source copies will soon need to start using AIJsonUtilities instead.

In order to make this functionality more useful from a customizability perspective, this PR exposes the schema transformer functionality on AIJsonSchemaCreateOptions.

Microsoft Reviewers: Open in CodeFlow

@eiriktsarpalis eiriktsarpalis requested a review from a team as a code owner November 20, 2024 11:17
@eiriktsarpalis eiriktsarpalis self-assigned this Nov 20, 2024
@eiriktsarpalis eiriktsarpalis enabled auto-merge (squash) November 20, 2024 21:11
@eiriktsarpalis eiriktsarpalis merged commit f846de6 into dotnet:main Nov 20, 2024
6 checks passed
@eiriktsarpalis eiriktsarpalis deleted the jsonschema-transformers branch November 20, 2024 21:48
stephentoub pushed a commit to stephentoub/extensions that referenced this pull request Nov 20, 2024
* Expose a schema transformer on AIJsonSchemaCreateOptions.

* Address feedback

* Disable caching if a transformer is specified.

* Remove `FilterDisallowedKeywords`.

* Document caching.

* Apply suggestions from code review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants