docs: document serialization, schema, and policy framework#372
Merged
kcenon merged 2 commits intoFeb 9, 2026
Merged
Conversation
Add comprehensive SERIALIZATION_SCHEMA_POLICY_GUIDE.md covering: - Serialization framework (Strategy Pattern, 4 formats: JSON/Binary/XML/MessagePack) - serializer_strategy interface, serializer_factory, serialization_format enum - Schema validation system with fluent API (require/optional/range/pattern/one_of/custom) - validation_error structure and validation_codes namespace - Policy container template (basic_value_container<StoragePolicy>) - StoragePolicy concept and 3 implementations (dynamic/indexed/static) - Thread safety model (shared_mutex, reader-writer locks) - 4 integration examples (validate+serialize, multi-format, fast-lookup, type-safe) Closes #368
6 tasks
array_value is defined in the value_types enum but has no corresponding alternative in value_variant yet. Mark as reserved/planned to match actual source code.
kcenon
added a commit
that referenced
this pull request
Apr 13, 2026
* docs: document serialization, schema, and policy framework Add comprehensive SERIALIZATION_SCHEMA_POLICY_GUIDE.md covering: - Serialization framework (Strategy Pattern, 4 formats: JSON/Binary/XML/MessagePack) - serializer_strategy interface, serializer_factory, serialization_format enum - Schema validation system with fluent API (require/optional/range/pattern/one_of/custom) - validation_error structure and validation_codes namespace - Policy container template (basic_value_container<StoragePolicy>) - StoragePolicy concept and 3 implementations (dynamic/indexed/static) - Thread safety model (shared_mutex, reader-writer locks) - 4 integration examples (validate+serialize, multi-format, fast-lookup, type-safe) Closes #368 * docs: fix array_value storage type in SERIALIZATION_SCHEMA_POLICY_GUIDE array_value is defined in the value_types enum but has no corresponding alternative in value_variant yet. Mark as reserved/planned to match actual source code.
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.
Summary
docs/SERIALIZATION_SCHEMA_POLICY_GUIDE.mddocumenting three interconnected subsystemsCloses #368
Changes
New File:
docs/SERIALIZATION_SCHEMA_POLICY_GUIDE.mdbasic_value_container<StoragePolicy>template, thread safety modelStoragePolicyconcept, 3 implementations comparison, custom policy interfaceSource Files Cross-Referenced
core/serializers/serializer_strategy.h— Base interface,serialization_formatenumcore/serializers/serializer_factory.h— Factorycreate()andis_supported()core/serializers/json_serializer.h— JSON serializer withserialize_to_string()core/serializers/binary_serializer.h— Custom binary format serializercore/serializers/xml_serializer.h— XML serializercore/serializers/msgpack_serializer.h— MessagePack serializercore/container/schema.h—container_schema,validation_error,validation_codescore/policy_container.h—basic_value_container<>, type aliasescore/storage_policy.h—StoragePolicyconcept, 3 policy implementationsTest Plan
Verification Details
Cross-Reference Review: 97 checks performed (96 PASS, 1 FAIL → fixed in follow-up commit)
CI: 25/25 checks ALL PASS