Skip to content

Add Swagger Copy for AI#72

Merged
eviltester merged 1 commit into
masterfrom
codex/71-swagger-copy-for-ai
Jul 18, 2026
Merged

Add Swagger Copy for AI#72
eviltester merged 1 commit into
masterfrom
codex/71-swagger-copy-for-ai

Conversation

@eviltester

Copy link
Copy Markdown
Owner

Summary

  • Add shared Swagger UI "Copy for AI" JavaScript and CSS assets.
  • Wire the copy toolbar and per-operation buttons into Thingifier-generated Swagger UI and CRUD UI Swagger UI.
  • Generate Markdown client-side from OpenAPI using window.location.origin plus any relative server path prefix, such as /api.
  • Add static/unit coverage and CRUD UI Playwright coverage for the copy buttons and generated clipboard text.

Closes #71

Verification

  • node --check thingifier\src\main\resources\public\js\swagger-copy-for-ai.js
  • mvn -pl thingifier -Dtest=SwaggerUiPageTest,SwaggerCopyForAiAssetTest test
  • mvn -pl thingifier-crud-ui -am -Dtest=CrudUiControllerTest -DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false test
  • mvn -pl thingifier-crud-ui -am -Dit.test=SwaggerCopyForAiUiIT verify
  • mvn -pl thingifier,thingifier-crud-ui -am test
  • mvn -pl thingifier-crud-ui -am verify
  • mvn -pl thingifier -DskipTests checkstyle:check@project-fqn-check
  • mvn spotless:check

Copilot AI review requested due to automatic review settings July 18, 2026 16:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@eviltester
eviltester merged commit 2766562 into master Jul 18, 2026
3 checks passed
@eviltester
eviltester deleted the codex/71-swagger-copy-for-ai branch July 18, 2026 16:57

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a1ee2ea474

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

lines.push("", "## Description", "", operation.description);
}

appendParameters(lines, operation.parameters || []);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include path-level parameters in operation copies

For operations whose parameters are defined at the OpenAPI path-item level, this only passes operation.parameters, so copied Markdown omits required URL params and can even say “No parameters documented” for endpoints like /.../{id}. The Thingifier Swaggerizer emits URL parameters onto the path item with path.addParametersItem(...), so please carry the path item's parameters through the operation index and merge them before calling appendParameters.

Useful? React with 👍 / 👎.

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.

swagger - copy for AI button

2 participants