Skip to main content

pattern

Optional Field

This field is optional, but omitting it may leave out functionality on Prisjakt for your offers

Description

Using this attribute is strongly recommended for Fashion categories.

Effects When Used

  • Add it to improve search results and listing.

Validation Rules

  • Length must be between 1-100 characters

Best Practices

Do

  • Add only one value like stripped or dotted

Don´t

  • Don't use values that do not describe pattern None, N/A

Example Values

Here are examples of how a valid pattern value should look like in XML and CSV (with header) respectively.

Valid Value
<g:pattern><![CDATA[stripped]]></g:pattern>
Click to show more valid XML examples
<g:pattern><![CDATA[stripped]]></g:pattern>
<g:pattern><![CDATA[strips]]></g:pattern>

Error Codes

Below you will find possible error codes generated when validating this field alongside with an example in XML and CSV that would trigger the code. Please refer to the validation rules to understand the cause.

<g:pattern><![CDATA[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 100 characters value)]]></g:pattern>

Properties

PropertyValueDescription
Data TypestringClosest data type in code
NestedFalseDefines if this field consists of one or more sub-fields
Case SensitiveFalseIf small or large letters matter for this field
RepeatableFalseIf you can supply multiple items of this field (it´s a list)
Repeatable limit0If a list, this specifices the max number of items

Changelog

📅 2022-12-07

Added

Initial definition

References