From fe671206cc85d6b9c21d8c89cafd4dadcbb6ca3d Mon Sep 17 00:00:00 2001 From: James Bardin Date: Wed, 29 Sep 2021 16:45:29 -0400 Subject: [PATCH] Add detail about the protocol deprecation Make sure it's clear that the deprecated fields serve no purpose, and should be ignored. --- docs/plugin-protocol/tfplugin6.1.proto | 3 +++ internal/tfplugin6/tfplugin6.pb.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/plugin-protocol/tfplugin6.1.proto b/docs/plugin-protocol/tfplugin6.1.proto index e8912cd0b..3f6dead35 100644 --- a/docs/plugin-protocol/tfplugin6.1.proto +++ b/docs/plugin-protocol/tfplugin6.1.proto @@ -128,6 +128,9 @@ message Schema { repeated Attribute attributes = 1; NestingMode nesting = 3; + + // MinItems and MaxItems were never used in the protocol, and have no + // effect on validation. int64 min_items = 4 [deprecated = true]; int64 max_items = 5 [deprecated = true]; } diff --git a/internal/tfplugin6/tfplugin6.pb.go b/internal/tfplugin6/tfplugin6.pb.go index d3152b355..d73ab55ec 100644 --- a/internal/tfplugin6/tfplugin6.pb.go +++ b/internal/tfplugin6/tfplugin6.pb.go @@ -1480,6 +1480,9 @@ type Schema_Object struct { Attributes []*Schema_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` Nesting Schema_Object_NestingMode `protobuf:"varint,3,opt,name=nesting,proto3,enum=tfplugin6.Schema_Object_NestingMode" json:"nesting,omitempty"` + // MinItems and MaxItems were never used in the protocol, and have no + // effect on validation. + // // Deprecated: Do not use. MinItems int64 `protobuf:"varint,4,opt,name=min_items,json=minItems,proto3" json:"min_items,omitempty"` // Deprecated: Do not use.