diff --git a/provider/team_data_source.go b/provider/team_data_source.go index d1b0cbe..fed52c6 100644 --- a/provider/team_data_source.go +++ b/provider/team_data_source.go @@ -79,7 +79,7 @@ func (team *teamDataSource) Schema(ctx context.Context, req datasource.SchemaReq Computed: true, }, "captain": schema.StringAttribute{ - MarkdownDescription: "Member who is captain of the team. Must be part of the members too.", + MarkdownDescription: "Member who is captain of the team. Must be part of the members too. Note it could cause a fatal error in case of resource import with an inconsistent CTFd configuration i.e. if a team has no captain yet (should not be possible).", Computed: true, }, }, diff --git a/provider/team_resource.go b/provider/team_resource.go index 0eb4209..6ad2f28 100644 --- a/provider/team_resource.go +++ b/provider/team_resource.go @@ -103,7 +103,7 @@ func (r *teamResource) Schema(ctx context.Context, req resource.SchemaRequest, r Required: true, }, "captain": schema.StringAttribute{ - MarkdownDescription: "Member who is captain of the team. Must be part of the members too.", + MarkdownDescription: "Member who is captain of the team. Must be part of the members too. Note it could cause a fatal error in case of resource import with an inconsistent CTFd configuration i.e. if a team has no captain yet (should not be possible).", Required: true, }, },