Skip to content

Commit a444d1d

Browse files
authored
Add to Protocols FAQ
1 parent d89011e commit a444d1d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/protocols/faq.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,40 @@ Blocking events within a [Source Schema](/docs/connections/sources/schema/) or [
162162

163163
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.
164164

165+
### I've blocked events in my Schema Configuration why are they not showing up as blocked in my Source Schema?
166+
Within your [Schema Configuration](https://segment.com/docs/protocols/enforce/schema-configuration/) you'll notice there are two columns next to the Event Name titled Allowed and Blocked. If you've selected Omit Properties under Unplanned Properties/Traits then the Source Schema will only show a property as block if it is present when the whole event is blocked. This setting will only be enforced if the property is an unplanned name but not an unplanned value.
167+
168+
In order to show a blocked value for an property/trait within your Source Schema, you'll need to trigger a violaiton which can only be done using JSON Schema. Once you enforce your Schema Configuration to Omit Properties this will show as blocked.
169+
170+
See an example payload below:
171+
172+
```
173+
"protocols": {
174+
"omitted": [
175+
"newProperty"
176+
],
177+
"omitted_on_violation": [
178+
"integer",
179+
"string"
180+
],
181+
"sourceId": "1234",
182+
"violations": [
183+
{
184+
"type": "Invalid Type",
185+
"field": "properties.integer",
186+
"description": "Invalid type. Expected: integer, given: number"
187+
},
188+
{
189+
"type": "Invalid Type",
190+
"field": "properties.string",
191+
"description": "Invalid type. Expected: string, given: integer"
192+
}
193+
]
194+
```
195+
<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">
196+
197+
198+
165199
## Protocols Transformations
166200

167201
### Do transformations work with Segment replays?

0 commit comments

Comments
 (0)