Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions src/protocols/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,41 @@ Blocking events within a [Source Schema](/docs/connections/sources/schema/) or [

Warehouse connectors don't use data type definitions for schema creation. The [data types](/docs/connections/storage/warehouses/schema/#data-types) for columns are inferred from the first event that comes in from the source.

### Why are unplanned properties not showing up as blocked in my Source Schema, even though I've set the Schema Configuration to omit them?

Within your [Source Schema](https://segment.com/docs/connections/sources/schema/), you'll notice two columns next to the Event Name column: Allowed and Blocked. If you've set the [Schema Configuration](https://segment.com/docs/protocols/enforce/schema-configuration/) to **Block Unplanned Events** and **Omit Properties** unplanned properties/traits, the Source Schema will only show a property/trait as blocked when the entire event is blocked because it’s unplanned and not part of the Tracking Plan, and the property was part of the event payload. This setting will only be enforced if the property is an unplanned name, not an unplanned value.

To show a blocked value for a property/trait within your Source Schema, you'll need to trigger a violation, which can only be done using JSON Schema. Once you enforce your Schema Configuration to Omit Properties, this will show as blocked.

See an example payload below:

```
"protocols": {
"omitted": [
"newProperty"
],
"omitted_on_violation": [
"integer",
"string"
],
"sourceId": "1234",
"violations": [
{
"type": "Invalid Type",
"field": "properties.integer",
"description": "Invalid type. Expected: integer, given: number"
},
{
"type": "Invalid Type",
"field": "properties.string",
"description": "Invalid type. Expected: string, given: integer"
}
]
```
<img width="1073" alt="Screenshot 2024-07-19 at 2 16 04 PM" src="https://github.com/user-attachments/assets/b51534f6-c2db-4aeb-adf9-aa22b1b9f0bb">



## Protocols Transformations

### Do transformations work with Segment replays?
Expand Down