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

feat: make it possible to extend type data of schemas after registration. #250

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

zicklag
Copy link
Member

@zicklag zicklag commented Oct 23, 2023

This replaces the SchemaTypeMap with a new TypeDatas type that can have new type datas registered while only requring a read-only reference allowing the type datas of already-registered schemas to be updated.

This allows for a pattern similar to Rust's traits where a new crate that can create their own type data type, and register it for foreign types.

…ion.

This replaces the `SchemaTypeMap` with a new `TypeDatas` type that can
have new type datas registered while only requring a read-only reference
allowing the type datas of already-registered schemas to be updated.

This allows for a pattern similar to Rust's traits where a new crate that
can create their own type data type, and register it for foreign types.
@zicklag zicklag added this pull request to the merge queue Oct 23, 2023
Merged via the queue into fishfolk:main with commit e126681 Oct 23, 2023
10 checks passed
@zicklag zicklag deleted the feat/post-register-type-data branch October 23, 2023 19:41
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.

1 participant