OpsLevel / terraform-provider-opslevel

Terraform provider for OpsLevel.com
https://registry.terraform.io/providers/OpsLevel/opslevel/latest/docs
MIT License
8 stars 5 forks source link

Documentation of user role enum is wrong #391

Closed rocktavious closed 1 month ago

rocktavious commented 1 month ago

Reported by a customer

It looks like we did the right thing from the code perspective and the error message is good but the docs are not updated. Is there a problem with documentation generation?

https://github.com/OpsLevel/terraform-provider-opslevel/blob/main/opslevel/resource_opslevel_user.go#L84

here is the error message the customer got

Unable to create user, got error: Message: Variable $input of type
│ UserInput! was provided invalid value for role (Expected "basic_user" to be
│ one of: user, admin, team_member, standards_admin), Locations: [{Line:1
│ Column:35}], Extensions: map[problems:[map[explanation:Expected
│ "basic_user" to be one of: user, admin, team_member, standards_admin
│ path:[role]]]

But you can see here that the docs still point out basic_user

Screenshot 2024-07-03 at 10 09 53 AM

So given all this I would assume the enum is correct since the error message and we have a documentation generation problem.

AC