Skip to content

Commit

Permalink
feat[event.schema.json]: add object_id_type
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkitSiva authored Aug 7, 2024
1 parent ed2e8b6 commit 7e1013b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions schema/1.0.0/event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@
}
]
},
"object_id_type": {
"description": "The type of the object id that the user is searching for. For a social e-commerce site, these could include product, user, post, comment and so on.",
"oneOf": [
{
"type": "string",
"maxLength": 100,
"enum": ["product", "user", "post", "comment", "video"]
},
{
"type": "string",
"maxLength": 100
}
]
},
"object_id_field":{
"description": "The name of the field that has the id of the objects that will be stored in the backend queries data store. So it you have a query for products and want to save the SKUs, then this might be `sku` and if you are querying for people, maybe this is `ssn`. If you do not provide this value then the default primary identifier in your search index will be used. For example `_id` on OpenSearch. ",
"type": "string",
Expand Down

0 comments on commit 7e1013b

Please sign in to comment.