Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-openapi/codescan
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.36.1
Choose a base ref
...
head repository: go-openapi/codescan
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.36.2
Choose a head ref
  • 5 commits
  • 25 files changed
  • 3 contributors

Commits on Aug 1, 2026

  1. feat(schema): recognize the go1.27 standard-library uuid.UUID

    Go 1.27 introduces a stdlib uuid package. Its uuid.UUID resolves to
    {type: string, format: uuid} by type identity — import path plus name,
    alongside the existing time.Time and json.RawMessage checks — so it is
    recognized wherever a named type is handled, not only where the fuzzy
    name heuristic runs. That heuristic stays as the fallback for the
    third-party UUID types (google/uuid, gofrs/uuid, strfmt.UUID), and an
    explicit swagger:strfmt still overrules both.
    
    The recognizer carries no build constraint, on purpose: codescan
    compares types harvested from scanned sources and never imports uuid
    itself, so a binary built by an older toolchain must still recognize a
    go1.27 user type. Only the fixture and its integration test are guarded
    by //go:build go1.27, since those genuinely cannot compile before then;
    the predicate keeps its coverage on every supported toolchain through a
    unit test that synthesizes the type instead of importing it.
    
    An embedded uuid.UUID is unaffected — a non-struct, non-interface embed
    still falls to the unsupported-type warning and contributes nothing.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 1, 2026
    Configuration menu
    Copy the full SHA
    4abea75 View commit details
    Browse the repository at this point in the history
  2. docs(doc-site): explain how UUID types are recognized

    The model definitions tutorial now states the two rules side by side:
    the go1.27 standard-library uuid.UUID matched by type identity, and any
    other text-marshalling type named UUID matched by name. Both publish
    {type: string, format: uuid}, and swagger:strfmt overrules either.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 1, 2026
    Configuration menu
    Copy the full SHA
    cb823cb View commit details
    Browse the repository at this point in the history
  3. Merge pull request #77 from fredbi/stdlib-uuid

    Stdlib UUID (go1.27)
    fredbi authored Aug 1, 2026
    Configuration menu
    Copy the full SHA
    dd9a25b View commit details
    Browse the repository at this point in the history
  4. ci: fix mono-repo release for installable packages

    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Aug 1, 2026
    Configuration menu
    Copy the full SHA
    63c6be5 View commit details
    Browse the repository at this point in the history
  5. chore: prepare release v0.36.2

    Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    bot-go-openapi[bot] authored and github-actions[bot] committed Aug 1, 2026
    Configuration menu
    Copy the full SHA
    59c18be View commit details
    Browse the repository at this point in the history
Loading
⌂ 换网址