Skip to content

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.

2 participants