-
Notifications
You must be signed in to change notification settings - Fork 370
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
[datadog_provider] Add resource wrapper and support adding enum values to docs #1922
Conversation
} | ||
description = fmt.Sprintf("%s Valid values are %s.", description, validValuesMsg) | ||
break | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
} | |
if validators.Index(i).Elem().Type().Name() == "atLeastValidator" { | |
atLeast := validators.Index(i).Elem().FieldByName("min") | |
if atLeast.IsValid() { | |
description = fmt.Sprintf("%s Value must be at least %d.", description, atLeast.Int()) | |
break | |
} | |
} |
thoughts on adding more validators to this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, I will work on this in a separate pr. I would need to cross check what type of validation are included in the documentation for resources written using terraform-plugin-sdk
and implement the same ones for framework.
Co-authored-by: Kevin Zou <17015060+nkzou@users.noreply.github.com>
No description provided.