Skip to content

Apply transforms correctly - #230

Open
Diggsey wants to merge 2 commits into
tamasfe:mainfrom
platformed-com:master
Open

Apply transforms correctly#230
Diggsey wants to merge 2 commits into
tamasfe:mainfrom
platformed-com:master

Conversation

@Diggsey

@Diggsey Diggsey commented Jul 8, 2025

Copy link
Copy Markdown

No description provided.

@jplatte

jplatte commented Jul 9, 2025

Copy link
Copy Markdown
Collaborator

The first commit was merged as part of the original PR that proposed it. Can you explain what problem the second commit solves, and maybe even add a test?

@Diggsey

Diggsey commented Jul 9, 2025

Copy link
Copy Markdown
Author

schemars defines transformations to apply to the schema, for eg. compatibility with OpenAPI. These transforms are defined in the schema settings. When aide accesses sub-schemas via resolve_schema instead of using schemars' root_schema_for and similar methods, those transformations never get applied, meaning the generator settings are ignored.

@shovelmn12

Copy link
Copy Markdown

Any news on version bump?

@jplatte

jplatte commented Sep 12, 2025

Copy link
Copy Markdown
Collaborator

No, sorry.

@jplatte jplatte added this to the 0.16 milestone Dec 27, 2025
@jplatte

jplatte commented Dec 29, 2025

Copy link
Copy Markdown
Collaborator

@Diggsey sorry for the slow feedback. Could you rebase, and add a test for the transforms change?

@jplatte jplatte changed the title Bump schemars and apply transforms correctly Apply transforms correctly Dec 29, 2025
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.

4 participants