Skip to content

Commit

Permalink
add related_items to events schema
Browse files Browse the repository at this point in the history
SDBELGA-767
  • Loading branch information
petrjasek committed Feb 12, 2024
1 parent 238298b commit 8c7a099
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion server/planning/events/events_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,28 @@
},
},
},
} # end events_schema
"related_items": {
"type": "list",
"required": False,
"schema": {
"type": "dict",
"schema": {
"guid": {"type": "string", "required": True},
"type": {"type": "string"},
"state": {"type": "string"},
"version": {"type": "string"},
"headline": {"type": "string"},
"slugline": {"type": "string"},
"versioncreated": metadata_schema["versioncreated"],
"source": {"type": "string"},
},
},
"mapping": {
"type": "object",
"dynamic": False,
"properties": {
"guid": not_analyzed, # allow searching events by item id
},
},
},
} # end events_schema:

0 comments on commit 8c7a099

Please sign in to comment.