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
refactor: consolidate duplicated guards, error construction, and package list
Behavior-preserving simplifications on top of the validation/schema/tooling
fixes. Each item removes a single source of duplication or redundant state:
- ack.dart: extract _requireNonEmpty/_requireUniqueBy for the enumValues,
enumString, and anyOf argument guards
- schema.dart: extract _failFromThrown for the three thrown-error catch blocks
- codec_schema.dart: drop redundant _encoderIdentity (provably identical to
_encoder in every path; _decoderIdentity retained as it fixes a real bug)
- lazy_schema.dart: drop write-only _LazyRecursionContext.owner (duplicated the
inherited SchemaContext.schema)
- ack_schema_model_builder.dart: hoist a single const _deepEquality
- schema_ast_analyzer.dart: extract _rejectIfReferencesNullableSchema (2 sites)
- api_check.dart: extract _writeProcessStderr
- update_release_changelog.dart: drop redundant record `path` field
- scripts: share publishableAckPackages across api_check and
update_release_changelog (new scripts/src/workspace_packages.dart)
- enum_schema/any_of_schema: point docs to the canonical AckSchema policy
dart analyze clean; ack (955) + ack_generator (127) + scripts tests pass.
0 commit comments