Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cla-backend-go/docs/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (o *GetDocOK) WriteResponse(rw http.ResponseWriter, producer runtime.Produc
</head>
<body>
<redoc spec-url='/v3/swagger.json'></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"> </script>
Copy link

Copilot AI Nov 13, 2025

Choose a reason for hiding this comment

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

Using latest as the version tag can lead to unexpected breaking changes when Redoc releases new versions. Consider pinning to a specific version (e.g., https://cdn.redoc.ly/redoc/v2.1.3/bundles/redoc.standalone.js) to ensure consistent rendering and avoid potential breaking changes in production.

Suggested change
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"> </script>
<script src="https://cdn.redoc.ly/redoc/v2.1.3/bundles/redoc.standalone.js"> </script>

Copilot uses AI. Check for mistakes.
</body>
</html>`

Expand Down
2 changes: 1 addition & 1 deletion cla-backend-go/v2/docs/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (o *GetDocOK) WriteResponse(rw http.ResponseWriter, producer runtime.Produc
redoc.setAttribute('spec-url','/v4/swagger.json');
}
</script>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"> </script>
</body>
</html>`

Expand Down
Loading