Skip to content

Commit 1f10978

Browse files
committed
simplify attributes
1 parent 05bfc0d commit 1f10978

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

guides/How-To/commerce-extensions/create-a-multilocation-inventories-resource.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ curl -X POST "https://useast.api.elasticpath.com/v2/settings/extensions/custom-a
7171
}
7272
```
7373

74-
Some things to note about the sample request above:
75-
* `data.validation.string.min_value`: Ensures that `slug` values have at least 12 characters.
76-
* `data.validation.string.allow_null_values`: Will reject any `null` values from being stored as a `sku`.
77-
* `data.validation.unique`: Blocks any duplicate values from being stored as a `sku`.
78-
* `data.validation.unique_case_insensitivity`: Controls whether values with different cases (for example, `ABC` and `abc`) should conflict. Only applies when `unique` is set to `yes`.
74+
Some things to note about `validation` object in the sample request above:
75+
* `min_length`: Ensures that `slug` values have at least 12 characters.
76+
* `allow_null_values`: Will reject any `null` values from being stored as a `sku`.
77+
* `unique`: Blocks any duplicate values from being stored as a `sku`.
78+
* `unique_case_insensitivity`: Controls whether values with different cases (for example, `ABC` and `abc`) should conflict. Only applies when `unique` is set to `yes`.
7979

8080
Each of these can be tailored to fit your business see [Custom Fields Overview](/docs/api/commerce-extensions/custom-fields) for more.
8181

@@ -106,7 +106,7 @@ curl -X POST "https://useast.api.elasticpath.com/v2/settings/extensions/custom-a
106106
}
107107
}
108108
```
109-
Take note of `data.validation.integer.min_value` in the step above, this field is restricted to not allow negative values. For more information, see [integer validation](/docs/api/commerce-extensions/custom-fields#integer-validation).
109+
Take note of `min_value` in the step above, this field is restricted to not allow negative values. For more information, see [integer validation](/docs/api/commerce-extensions/custom-fields#integer-validation).
110110

111111
### Create Custom Field - location-name
112112

0 commit comments

Comments
 (0)