provider: separate schemas into dedicated files #1321
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates the provider to separate the resource and schema. This unblocks
some possibilities with schema automation, schema reuse between
data sources and resources, and trims down some very large files.
To perform this, I largely relied on comby and a couple of hand
modified files for the outliers.
As this PR is largely just whitespace, I recommend viewing with
?w=1
enabled.
I've updated the documentation here too to mention why the file name conventions are
the way they are and what they actually mean. See https://github.com/cloudflare/terraform-provider-cloudflare/pull/1321/files#diff-977f7a75a20da1290fb7ee0adb2dafa4d442433510400bcb01e2fd4ef95f5af5 for full details.