Skip to content

jsonschema: change TypeSchemas key to reflect.Type#29

Merged
jba merged 1 commit intomainfrom
fix-26
Sep 22, 2025
Merged

jsonschema: change TypeSchemas key to reflect.Type#29
jba merged 1 commit intomainfrom
fix-26

Conversation

@jba
Copy link
Collaborator

@jba jba commented Sep 22, 2025

BREAKING CHANGE

The key of ForOptions.TypeSchemas cannot be a value of the type, because some types can't be map keys.

So change it to reflect.Type.

Fixes #26.

BREAKING CHANGE

The key of ForOptions.TypeSchemas cannot be a value of the type,
because some types can't be map keys.

So change it to reflect.Type.

Fixes #26.
@jba jba requested a review from findleyr September 22, 2025 17:36
@jba jba assigned baptmont and unassigned baptmont Sep 22, 2025
@jba jba requested a review from baptmont September 22, 2025 17:36
@findleyr
Copy link
Contributor

I see no other option but this, or a painful API deprecation. I think let's do this to avoid having to carry an incorrect API.

@jba jba merged commit 2a1c0a4 into main Sep 22, 2025
9 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.

hash of unhashable type main.ID (struct containing slice)

3 participants