Skip to content

Conversation

kyleconroy
Copy link
Contributor

Using a SchemaCustomizer, I can't configure schemas for json.RawMessage fields. If I have the following struct

type Foo struct {
    Bar string `json:"bar"`
    Output json.RawMessage `json:"output"`
}

The schema customization function will only be called for the Bar field, not the Output field.

@kyleconroy
Copy link
Contributor Author

@fenollp please let me know if this is something you'd consider merging. Thanks!

@fenollp
Copy link
Collaborator

fenollp commented Jan 29, 2025

Please add tests.

@kyleconroy
Copy link
Contributor Author

Tests added

@fenollp fenollp merged commit 72fb819 into getkin:master Feb 3, 2025
5 checks passed
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