adding docs for the framework Required field (#13884)

* adding docs for the framework Required field

* minor fix

* Update sdk/framework/backend.go

Co-authored-by: Jim Kalafut <jkalafut@hashicorp.com>

Co-authored-by: Jim Kalafut <jkalafut@hashicorp.com>
This commit is contained in:
hghaf099
2022-02-03 11:44:01 -05:00
committed by GitHub
parent 2999fb8865
commit c61d0d204c

View File

@@ -625,8 +625,11 @@ type FieldSchema struct {
Type FieldType
Default interface{}
Description string
Required bool
Deprecated bool
// The Required and Deprecated members are only used by openapi, and are not actually
// used by the framework.
Required bool
Deprecated bool
// Query indicates this field will be sent as a query parameter:
//