Add Swagger Copy for AI#72
Conversation
There was a problem hiding this comment.
💡 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 || []); |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
window.location.originplus any relative server path prefix, such as/api.Closes #71
Verification
node --check thingifier\src\main\resources\public\js\swagger-copy-for-ai.jsmvn -pl thingifier -Dtest=SwaggerUiPageTest,SwaggerCopyForAiAssetTest testmvn -pl thingifier-crud-ui -am -Dtest=CrudUiControllerTest -DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false testmvn -pl thingifier-crud-ui -am -Dit.test=SwaggerCopyForAiUiIT verifymvn -pl thingifier,thingifier-crud-ui -am testmvn -pl thingifier-crud-ui -am verifymvn -pl thingifier -DskipTests checkstyle:check@project-fqn-checkmvn spotless:check