mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-23 20:21:03 +02:00
Fixing unit tests
This commit is contained in:
parent
190d80d943
commit
a3912ccfdf
1 changed files with 3 additions and 1 deletions
|
|
@ -57,7 +57,9 @@ class StructuredDataDiagnosisResponseTranslator(MessageTranslator):
|
|||
result["descriptor"] = obj.descriptor
|
||||
if obj.metadata:
|
||||
result["metadata"] = obj.metadata
|
||||
if obj.schema_matches: # Only include if non-empty list
|
||||
# For schema-selection, always include schema_matches (even if empty)
|
||||
# For other operations, only include if non-empty
|
||||
if obj.operation == "schema-selection" or obj.schema_matches:
|
||||
result["schema-matches"] = obj.schema_matches
|
||||
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue