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

Add optional field tag option #120

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

Add optional field tag option #120

wants to merge 2 commits into from

Conversation

NoF0rte
Copy link

@NoF0rte NoF0rte commented Dec 14, 2021

Marking a field with cty:"name,optional" will set that field as an optional field

@apparentlymart
Copy link
Collaborator

Thanks for working on this, @NoF0rte!

I'm not planning to extend the experimental optional attributes mechanism anywhere else right now because experience with it has shown that it has various quirks and rough edges in practical applications, but if subsequent work leads to it still having a similar-ish shape to the current design then I'd love to use this PR as a basis for making it available to gocty too.

I'm going to leave this open for now and revisit once there's a clearer idea of what the future of this experimental feature looks like. Thanks again!

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.

None yet

2 participants