-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource schema documentation generation ignores property values #275
Comments
Hi @mschuchard 👋 I've just tried to reproduce the behaviour you describe. I'm seeing the following: Required "configurable_attribute": schema.StringAttribute{
Required: true,
MarkdownDescription: "Example configurable attribute",
}, ### Required
- `configurable_attribute` (String) Example attribute Optional schema.StringAttribute{
Optional: true,
MarkdownDescription: "Example attribute",
}, ### Optional
- `configurable_attribute` (String) Example attribute Optional + Computed "configurable_attribute": schema.StringAttribute{
Optional: true,
Computed: true,
MarkdownDescription: "Example attribute",
}, ### Optional
- `configurable_attribute` (String) Example attribute Computed "configurable_attribute": schema.StringAttribute{
Computed: true,
MarkdownDescription: "Example attribute",
}, ### Read-Only
- `configurable_attribute` (String) Example attribute Specifying that an attribute is both optional and computed seems to mark the attribute as |
Yes I am returning here to note that now my |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
For a given schema:
the property values of
Required
,Optional
, andComputed
are ignored during document generation. The observed behavior is that if theComputed
field exists in thestruct
then the generated document for the schema will mark the parameterfoo
asRead-Only
regardless of property values.The text was updated successfully, but these errors were encountered: