Skip to content

Add predicates for specifying key and value types of maps#85

Closed
uhoreg wants to merge 1 commit intosolnic:mainfrom
uhoreg:map_key_value_types
Closed

Add predicates for specifying key and value types of maps#85
uhoreg wants to merge 1 commit intosolnic:mainfrom
uhoreg:map_key_value_types

Conversation

@uhoreg
Copy link
Contributor

@uhoreg uhoreg commented Nov 25, 2025

fixes #57

I used the syntax suggested in #57 (comment) but since I'm using predicates, I wonder if I should add question marks to the names?

@uhoreg
Copy link
Contributor Author

uhoreg commented Nov 29, 2025

One problem with using predicates is that it doesn't allow for any changes to be made to the data, as it leaves the data unmodified. e.g. if you do something like values: cast(integer()) |> string(), the values will remain integers, rather than be cast. So this might need to be called out in the docs.

@uhoreg
Copy link
Contributor Author

uhoreg commented Feb 5, 2026

superseded by #87

@uhoreg uhoreg closed this Feb 5, 2026
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.

UndefinedFunctionError when using map(:string) field type

1 participant