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

look inside :ref when searching for default for :map child #1146

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

opqdonut
Copy link
Member

@opqdonut opqdonut commented Dec 10, 2024

When a default value gets produced up via the normal transformer
pipeline, the -transform method of -ref-schema will delegate to the
child schema. However, when we're building up the default values for a
:map in add-defaults, we're not using the transformer pipeline, but
calling get-default manually. Thus, we need to manually deref.

fixes #1145

When a default value gets produced up via the normal transformer
pipeline, the -transform method of -ref-schema will delegate to the
child schema. However, when we're building up the default values for a
:map in add-defaults, we're not using the transformer pipeline, but
calling get-default manually. Thus, we need to manually deref.

fixes #1145
@opqdonut opqdonut marked this pull request as ready for review December 10, 2024 08:27
@opqdonut opqdonut requested a review from ikitommi December 12, 2024 14:34
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.

default-value-transformer doesn't work for a :ref inside a :map
1 participant