Skip to content

Commit 22f6128

Browse files
authored
Shaping rules module typos (#6447)
* Fix typos in Shaping Rules module documentation * Fix extraSchemaEvaluators example type * Add missing required field version * Revert changes of `conditions`
1 parent c5f87b8 commit 22f6128

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

dev-docs/modules/shapingRulesModule.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,17 @@ pbjs.setConfig({
178178
shapingRules: {
179179
rules: {
180180
enabled: true,
181-
rulesets: [
181+
version: "123",
182+
ruleSets: [
182183
{
183184
stage: "processed-auction-request",
184185
name: "exclude-in-jpn",
185-
version: "1234",
186+
version: "456",
186187
modelGroups: [
187188
{
188189
weight: 98,
189190
analyticsKey: "experiment-name",
190-
version: "4567",
191+
version: "789",
191192
schema: [
192193
{
193194
function: "deviceCountryIn",
@@ -225,24 +226,25 @@ The configuration also allows you to define custom schema evaluators using the `
225226
pbjs.setConfig({
226227
shapingRules: {
227228
extraSchemaEvaluators: {
228-
browser: (args, context) => {
229+
browser: (args, context) => () => {
229230
if (navigator.userAgent.includes("Chrome")) {
230231
return "Chrome";
231232
}
232233
},
233234
},
234235
rules: {
235236
enabled: true,
236-
rulesets: [
237+
version: "123",
238+
ruleSets: [
237239
{
238240
stage: "processed-auction-request",
239241
name: "exclude-in-jpn",
240-
version: "1234",
242+
version: "456",
241243
modelGroups: [
242244
{
243245
weight: 98,
244246
analyticsKey: "experiment-name",
245-
version: "4567",
247+
version: "789",
246248
schema: [
247249
{
248250
function: "browser",

0 commit comments

Comments
 (0)