Repository navigation
ADR-0026: every public type of a provider in its root namespace - #352
Merged
Merged
Conversation
ADR-0026 supersedes ADR-0007 and restates it with one change: a provider's models and enums live in its root namespace, files in the project root, so one using reaches everything and a type never moves because another area starts using it. NBP keeps its 1.x area namespaces until 2.0 (#351). .Models joins the banned public namespace names. ADR-0016 and ADR-0023 are corrected in place. The White List's nine public models move from Search/, Check/ and Status/ into OpenUrzednik.MF.WhiteList; the internal mappers stay. An Architecture test enforces the rule for every provider except NBP. Closes #350 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #350
What
.Modelsjoins.Extensionsand.Optionsas a banned public namespace name..Models, and a shared namespace plus area namespaces, citing the survey of 18 SDKs, the Azure SDK guidelines and the Framework Design Guidelines.code-conventionsandclient-apirules, the reviewer agent, thenew-provider,new-endpointandstrykerskills, and code comments.Search/,Check/andStatus/to the project root andOpenUrzednik.MF.WhiteList:Subject,SubjectPerson,VatStatus,SubjectSearchResult,SubjectsSearchResult,BatchSearchResult,BatchSearchEntry,AccountCheckResultandVatStatusResult.PublicAPI.Unshipped.txtis updated. The package is unreleased (IsPackable=false), so nothing breaks..Search, which made it fail.Checks run locally
dotnet build OpenUrzednik.slnx -p:TreatWarningsAsErrors=true: 0 errors.dotnet test -f net10.0on the full solution (reviewer's run): 3,225 passed, 0 failed, 41 explicit tests skipped.-f net472on WhiteList, Diagnostics and Logging: all pass.dotnet format --verify-no-changes: clean.uv run tests/Mutation/run.py mf-white-list: 100% (468 killed).dotnet packandpackage_guard.py: OK.The
revieweragent found nothing blocking. I applied all of its should-fix items and nits:PublicType_Always_HasNoMemberKindNamespaceSegment.new-endpointandstrykerskills are updated.After these edits, the Architecture tests (58) and format passed again.
Left for the maintainer: ADR-0023's Context (line 16) still cites the superseded ADR-0003, ADR-0004 and ADR-0007 as contracts. This predates this PR and is outside #350.
🤖 Generated with Claude Code