Skip to content

fix(enterprise-teams): add ValidateDiagFunc to enterprise_slug and team_slug schema fields #64

@vmvarela

Description

@vmvarela

Description

Reviewer feedback: move input validation from CRUD functions to schema ValidateDiagFunc so users get errors at plan time instead of apply.

Acceptance Criteria

  • Add ValidateDiagFunc: validation.ToDiagFunc(validation.All(validation.StringIsNotWhiteSpace, validation.StringIsNotEmpty)) to enterprise_slug in all resources and data sources
  • Add same validation to team_slug fields
  • Remove equivalent manual checks from Create/Read/Update/Delete functions
  • Verify make build passes

Notes

Upstream PR: integrations#3008

Metadata

Metadata

Assignees

No one assigned

    Labels

    enterprise-teamsRelated to the enterprise-teams feature branchpriority:mediumShould be done soonsize:sSmall — 1 to 4 hoursstatus:readyRefined and ready for sprint selectiontype:bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions