Repository navigation
Align configuration with documented behavior - #53
Merged
Merged
Conversation
Honor supported customization in sample and schema generation, and let explicit CLI values override configuration defaults. Reject unknown and unsupported settings instead of silently ignoring them, while warning about retained legacy no-ops. Document the compatibility policy, cover generated-code decoding and CLI precedence, and clear existing lint findings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Configuration files currently accept options that generation ignores, and schema mode bypasses supported customization. Honor supported options in both modes and report unsupported settings instead of silently accepting them.
Type of Change
Changes Made
--package=main,--root-name=RootType, and--format=true.force_int64anddate_formatsettings.Testing
go test -race -count=1 ./...passed, including generated-code compilation and JSON decoding, CLI precedence, and configuration diagnostics.go vet ./...and Staticcheck v0.8.2 passed.make lintwith golangci-lint v2.15.0: 0 issues.gofmt -s -l .andgit diff --check: no findings.Configuration Changes and Documentation
Breaking Changes
Older files with misspelled keys or enabled unsupported settings now fail with migration advice. Remove those settings or use the accepted inactive defaults documented in the README. Constructors, String methods, custom headers, and debug logging are not implemented; gofumpt can run separately. Object samples always merge.
types.force_int64andtypes.date_formatremain accepted no-ops with CLI warnings.--debug=truenow returns an error instead of silently doing nothing.