You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codegen hygiene: regeneration is not formatted, a Task checksum is tracked, docs name two spec sources #39
task generate-openapi-client cannot be used for a clean regeneration PR today. Four small problems, all contributor-only (no effect on users of the CLI or the library):
The generated code is not formatted.generate-openapi-client (Taskfile.yml:80-97) generates, copies compat.go and swaps the result into pkg/openapi. The committed pkg/openapi is gofmt-clean (gofmt -l pkg/openapi prints nothing), so the author has to remember to run task fmt afterwards; otherwise the PR shows formatting-only changes. openapi: decode ErrorRS.errorCode as an integer #33 reports 372 changed files after a plain generation and 0 after go fmt ./pkg/openapi/; that count was not reproduced here (no Docker), but pkg/openapi has 374 .go files.
.task/checksum/preprocess-schema is tracked although .gitignore:42 ignores .task/. It was added in 247d914 (a CI commit) and is the only tracked-but-ignored file. preprocess:schema rewrites it whenever the spec or the jq filter changes.
Two documents name two spec sources.Taskfile.yml:16 says https://beta.epmrpp.reportportal.io/api/api-docs, AGENTS.md:92 says https://demo.reportportal.io/api/v1/api-docs. The second URL answers 401 without credentials.
Generator scaffolding is tracked in pkg/openapi:.travis.yml, git_push.sh, README.md (682 links to docs/*.md files that are not generated, and the import path github.com/reportportal/gorp/v5/pkg/openapi in the wrong case).
Expected: one command regenerates pkg/openapi in its committed form, and the docs name one spec source.
Activity