Repository navigation
fix(core): preserve JSON null documents in inline round trips - #707
marcschier wants to merge 2 commits into
Conversation
Use the supported base64 form for a nonempty document whose JSON representation would be null, including JSON typemap selection without the binary flag. Keep explicit request-null reset and other JSON value kinds unchanged, and preserve the original null-document bytes. Signed-off-by: Marc Schier <marcschier@hotmail.com>
Remove the approved toy document import/export tests and script-only README. Preserve every Core and Model hunk for the separate JSON-null representation policy review. Signed-off-by: Marc Schier <marcschier@hotmail.com>
|
Applied signed, forward cleanup commit 38e7c4f. Removed the introduced specification-text/synthetic-policy Python and its script-only instructions. The full remaining baseline tools suite passed 67 cases. The normative proposal, source models, samples and generated artifacts are unchanged by cleanup. This PR remains open for its e review; no policy decision or review-thread resolution is implied. Updated the PR description with current evidence, explicit retained scope and the pre-cleanup description archived as historical context. Original draft state and source branch are preserved. |
Retain category e typemap precedence over discretionary base64 and the proposed lossless string fallback without choosing a universal character encoding. The established string/json/binary, implicit-map, binary-flag and empty-document alignment retains category b ownership in xregistry#723. Keep that required overlap until its actual upstream merge; do not merge the whole prerequisite branch. The next source commit composes xregistry#707 decoded-null exception. Source-PR: xregistry#699 Source-Head: 9d29755 Source-Merge-Base: 9ecf8ea Source-Commit: 9668fa6 Prerequisite-Owner: xregistry#723 (established document representation alignment) Signed-off-by: Marc Schier <marcschier@hotmail.com>
Retain the reviewed category e original-byte base64 exception for decoded JSON null, even without the binary flag, and leave request-null reset, nested null and the JSON string null unchanged. Qualify xregistry#699 generic mapping statements with this existing exception in Core and Model; its base64 description now refers to all representation rules. This is source composition, not a new encoding policy. Source-PR: xregistry#707 Source-Head: 38e7c4f Source-Merge-Base: 9ecf8ea Source-Commit: 88855d7 Composed-With: xregistry#699 (9d29755) Signed-off-by: Marc Schier <marcschier@hotmail.com>
|
Superseded by the expanded Core model and Resource semantics keeper xregistry/spec#677. The reviewed net changes at 38e7c4f were transferred with their issue and review provenance; specification-text/synthetic-policy Python stays removed. Transfer and local integration evidence are in the keeper provenance comment. Immediately before closing, keeper head Closing this original only as superseded: the policy decisions remain open in the keeper, no upstream merge or review-thread resolution is implied, and the source branch is preserved. |
Fixes #592.
Proposed Changes - current review scope
This original PR remains open as policy decision (e). The approved
three-bundle consolidation does not approve or merge this proposal.
The ordinary inline round-trip loss is directly demonstrable, but the PR chooses a new mandatory output exception: nonempty JSON-null documents always use original-byte base64 even without the binary flag. Existing rules do not uniquely require that remedy.
Python cleanup in 38e7c4f
The forward, signed cleanup commit removes new specification-text assertions
and synthetic policy-test code unless it has a concrete role in checking
real repository artifacts. It does not change this PR's normative proposal,
source models, samples, generated artifacts or production behavior.
tools/test_json_null_document_592.pyScript-only documentation and obsolete helper/test instructions were removed
or corrected with the affected code. Unmodified baseline Python is outside
the audit's scope; the cleanup is not evidence that a proposed policy is
already normative.
Current evidence and dependencies
python -B -m pytest tools -q --tb=short -p no:cacheprovider -p pytest_asyncio.plugin: 67 passed; 4 existing deprecation warnings.This PR is not superseded by the three a/b/c bundles and must remain open for the review scope above.
The cleanup preserves the original draft state. No review thread is marked
resolved by this update, and no source branch is deleted. The historical
description below is preserved for context; its old test counts, helper
instructions and specification-text assertions are not current evidence.
Historical description at 88855d7 (before cleanup)