remove base/data_type_validated.h

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Fully Compatible
    • Programmability 2026-07-07
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      base/data_type_validated.h: remove as an ODR risk from poor layering

      This provides a template Validated<T>, which interacts with the "data layer" API.

      The ONLY uses of this thing are `Validated<BSONObj>`, which is defined in a far away disconnected file rpc/object_check.h, which is really not obvious.

      Failing to include rpc/object_check.h yields an ODR violation when one then tries to use `Validated<BSONObj>`.

      There's no need for the acrobatics. We can just have a `mongo::rpc::ValidatedBSONObj` data type defined in rpc/object_check.h that doesn't have any of these risks.

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: