Skip to content

fix(flatten): in options, guarded against possible json serialization of#221

Merged
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:fix/guard-against-json-serialization-of-funcs
Jul 20, 2026
Merged

fix(flatten): in options, guarded against possible json serialization of#221
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:fix/guard-against-json-serialization-of-funcs

Conversation

@fredbi

@fredbi fredbi commented Jul 20, 2026

Copy link
Copy Markdown
Member

funcs

Non-serializable exported fields should be guarded by json tag "-".

Also: updated linter (discarded goconst, deprecated linters, deprecated nolint directives). Acknowledged one remaining high complexity in flatter.

Change type

Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update

Short description

Fixes

Full description

Checklist

  • I have signed all my commits with my name and email (see DCO. This does not require a PGP-signed commit
  • I have rebased and squashed my work, so only one commit remains
  • I have added tests to cover my changes.
  • I have properly enriched go doc comments in code.
  • I have properly documented any breaking change.

funcs

Non-serializable exported fields should be guarded by json tag "-".

Also: updated linter (discarded goconst, deprecated linters, deprecated
nolint directives). Acknowledged one remaining high complexity in
flatter.

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.01%. Comparing base (70fd025) to head (a69bced).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #221   +/-   ##
=======================================
  Coverage   92.01%   92.01%           
=======================================
  Files          30       30           
  Lines        3393     3393           
=======================================
  Hits         3122     3122           
  Misses        189      189           
  Partials       82       82           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@fredbi
fredbi merged commit f65b576 into go-openapi:master Jul 20, 2026
25 checks passed
@fredbi
fredbi deleted the fix/guard-against-json-serialization-of-funcs branch July 20, 2026 21:57
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.

1 participant