Merged in feature/mutable-metadata1 (pull request #221)

M1, M2 and M3 complete

* M1, M2 and M3 complete

* review changes

* docs

* docs
This commit is contained in:
Jay Brown
2026-04-16 23:11:26 +00:00
parent ad7b21f3a2
commit 17fc813823
164 changed files with 44700 additions and 371 deletions
+10
View File
@@ -126,6 +126,16 @@ func (s *Controllers) GetDocument(ctx echo.Context, id DocumentID, params GetDoc
if document.FileSizeBytes != nil {
response.FileSizeBytes = document.FileSizeBytes
}
// Mutable-metadata feature (Milestone 2.3a/2.7): surface the two
// new fields directly from the DocumentEnriched service struct.
// No follow-up DB call here — the extended GetDocumentEnriched SQL
// query already populated both values in the single round-trip.
if document.CustomSchemaID != nil {
csid := openapi_types.UUID(*document.CustomSchemaID)
response.CustomSchemaId = &csid
}
hasCustomMetadata := document.HasCustomMetadata
response.HasCustomMetadata = &hasCustomMetadata
// Include text record if requested and available
if document.TextRecord != nil {