Skip to content

Conversation

@hanneshayashi
Copy link

This adds support for extracting resource and data source descriptions from the OpenAPI tags section. When an operation has tags, the description of the first matching tag from the document's tags array is used as the schema-level description.

This addresses the feature request in issue #123.

Changes:

  • Add Description field to explorer.Resource and explorer.DataSource
  • Add helper functions getTagDescription and getOperationTagDescription
  • Update resource_mapper.go to set resourceSchema.Description
  • Update datasource_mapper.go to set dataSourceSchema.Description
  • Regenerate golden test files

This adds support for extracting resource and data source descriptions
from the OpenAPI tags section. When an operation has tags, the description
of the first matching tag from the document's tags array is used as the
schema-level description.

This addresses the feature request in issue hashicorp#123.

Changes:
- Add Description field to explorer.Resource and explorer.DataSource
- Add helper functions getTagDescription and getOperationTagDescription
- Update resource_mapper.go to set resourceSchema.Description
- Update datasource_mapper.go to set dataSourceSchema.Description
- Regenerate golden test files
@hanneshayashi hanneshayashi requested a review from a team as a code owner January 14, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant