Closed teddylear closed 1 year ago
Hi @teddylear 👋 Thank you for this contribution.
As noted in the repository README:
This Go module is not intended to define all possible validations. In particular, many validators that relate to specific string formats, encodings, and other specifics should instead be implemented separately in custom attribute types
To that end, custom JSON types are available in the separate terraform-plugin-framework-jsontypes Go module: https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework-jsontypes
If those custom types do not satisfy this use case, please open an issue in that repository.
@bflad Would it be possible in another PR to link these other validator repos that are ran by Hashicorp in the README of this repo? It's non-obvious where these other validators are and if they even exist. In most Hashicorp docs regarding framework validators only point to this repo.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
@teddylear sorry for the delayed response -- submitted https://github.com/hashicorp/terraform-plugin-framework-validators/pull/173
Adding validator similar to this func from sdk v2 and it's tests for validating a string is valid json. I'm not sure where to edit the changelog, so please let me know or feel free to edit this PR.
Testing