Skip to content

feat: support operation descriptions#42

Merged
Nicholas Wiersma (nrwiersma) merged 1 commit intoGameFabric:mainfrom
icedream:feat/description
Apr 30, 2026
Merged

feat: support operation descriptions#42
Nicholas Wiersma (nrwiersma) merged 1 commit intoGameFabric:mainfrom
icedream:feat/description

Conversation

@icedream
Copy link
Copy Markdown
Contributor

Adds Describe() method to OpBuilder for setting the operation's long description, complementing the existing Doc() method for setting Summary.

Closes #31

Copilot AI review requested due to automatic review settings April 30, 2026 11:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds first-class support for OpenAPI operation Description (long-form text) alongside the existing Summary support via Doc().

Changes:

  • Extend Operation / merge logic to carry a new description field and expose it via OpBuilder.Describe().
  • Emit OpenAPI description when generating kin.Operation objects.
  • Add an example and a unit test covering description propagation.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
op.go Adds description to Operation, merges it, and exposes OpBuilder.Describe() to set it.
gen.go Maps Operation.description into the generated OpenAPI Description field.
gen_test.go Adds a test intended to validate description behavior (currently contains compile/runtime issues).
example_test.go Adds an example demonstrating Describe() usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gen_test.go Outdated
Comment thread gen_test.go Outdated
Comment thread gen_test.go Outdated
@icedream Carl Kittelberger (icedream) force-pushed the feat/description branch 2 times, most recently from 18a5d98 to 3995ea2 Compare April 30, 2026 11:34
@icedream
Copy link
Copy Markdown
Contributor Author

Test & example fixed up, should be fine now.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@antiphp Christian R (antiphp) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@nrwiersma Nicholas Wiersma (nrwiersma) merged commit 24e88b1 into GameFabric:main Apr 30, 2026
16 of 18 checks passed
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.

Support documenting through Description

4 participants