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

Introduce global and cascading configuration options #97

Merged
merged 1 commit into from Dec 20, 2023

Conversation

sethvargo
Copy link
Owner

This introduces the concept of global configurations and cascades struct-level configuration options onto all child fields. For example, marking a struct as required will mark all child fields as required. Similarly, setting a custom delimiter on a struct tag propagates that delimiter to all child fields of the struct.

Closes #88

@sethvargo sethvargo force-pushed the sethvargo/globals branch 2 times, most recently from ce874ea to cb1054b Compare December 20, 2023 03:37
This introduces the concept of global configurations and cascades struct-level configuration options onto all child fields. For example, marking a struct as required will mark all child fields as required. Similarly, setting a custom delimiter on a struct tag propagates that delimiter to all child fields of the struct.
@sethvargo sethvargo merged commit 9dce086 into main Dec 20, 2023
@sethvargo sethvargo deleted the sethvargo/globals branch December 20, 2023 03:39
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.

Set overwrite globally
1 participant