Package com.kazforge.jsonapi.document


@NullMarked package com.kazforge.jsonapi.document
Backend-independent JSON:API document read/write contract values.

DocumentReadContext keeps aggregate-validation policy separate from PrimaryDataKind. The validation context selects operation and endpoint semantics; the primary-data kind independently selects whether primary objects and arrays decode as resources or identifiers. Readers do not derive one axis from the other.

DocumentEnvelope carries optional top-level write members. A null component means absence, while a non-null empty value remains a present empty object on the wire. These values carry document state only.

  • Class
    Description
    Optional top-level links, meta, and JSON:API object attached during domain mapping.
    Immutable document-read contract with independent validation and decoding axes.
    Explicit interpretation of top-level primary data objects and arrays.