Skip to content

Conversation

tprouza
Copy link

@tprouza tprouza commented Jun 14, 2025

The documentation for SetSchemar indicates that when a type implements this interface, the generator will use it. However, this does not occur, except for type Kinds not handled by the switch cases, such as Array (covered by tests as [16]byte). Anyone implementing SetSchemar clearly intends for it to be used, especially for struct, which is often wrappers around some primitive value.

@fenollp
Copy link
Collaborator

fenollp commented Jun 15, 2025

Hey, thanks for this. Please add a regression test that ensures the behavior.

Copy link
Collaborator

@fenollp fenollp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for this. Please add a regression test that ensures the behavior.

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