Consider Exposing Framework Provider Metadata #1022
Labels
enhancement
New feature or request
non-protocol-info
Issues and PRs about surfacing information that Terraform doesn't need, but other clients do.
Background
The
terraform providers schema -json
command allows Terraform to output provider-based information in machine-readable JSON format. Terraform ecosystem tooling such as terraform-plugin-docs and the Terraform Language Server, rely on this specification to operate. The command currently only exposes information surfaced from the Terraform Plugin Protocol'sGetProviderSchema
RPC and therefore has a tight dependency on Terraform core.Since the provider schema information and other metadata are sourced from the providers themselves with no dependency on Terraform core, we can consider exposing a provider metadata function or RPC directly in the framework which provider developers can use to opt-in to outputting/exposing additional provider metadata.
Use-cases
terraform-plugin-framework
types for documentation and LSP #182terraform-plugin-docs:
SchemaDescriptionBuilder
equivalent (from sdkv2) #625 (comment)object
type for provider-defined functions terraform-plugin-docs#333The text was updated successfully, but these errors were encountered: