String filters
StringComparisonFilter
Section titled “StringComparisonFilter”A filter that applies a comparison to a string value.
Property | Type | Required | Description |
---|---|---|---|
operator | StringOperators | Yes | The operator to apply to the filter value |
value | string | Yes | The value to use for the filter operation |
Formats
Section titled “Formats”A JSON example of this field is:
{ "operator": "eq", "value": "value"}
Or with a string operator:
{ "operator": "like", "value": "value"}
The JSON schema for this field is:
$schema: https://json-schema.org/draft/2020-12/schema$id: StringComparisonFilter.yamltype: objectproperties: operator: type: string description: The operator to apply to the filter value enum: - eq - ne - like - not_like value: type: string description: The value to use for the filter operation
The TypeSpec code for this field is:
/** A filter that applies a comparison to a string value */model StringComparisonFilter { /** The operator to apply to the filter value */ operator: EquivalenceOperators | StringOperators;
/** The value to use for the filter operation */ @example("value") value: string;}
StringArrayFilter
Section titled “StringArrayFilter”A filter that applies a comparison to an array of string values.
Property | Type | Required | Description |
---|---|---|---|
operator | StringOperators | Yes | The operator to apply to the filter value |
value | Array<string> | Yes | The value to use for the filter operation |
Formats
Section titled “Formats”A JSON example of this field is:
{ "operator": "eq", "value": ["value1", "value2"]}
The JSON schema for this field is:
$schema: https://json-schema.org/draft/2020-12/schema$id: StringArrayFilter.yamltype: objectproperties: operator: $ref: ArrayOperators.yaml description: The operator to apply to the filter value value: type: array items: type: string examples: - value1 - value2 description: The value to use for the filter operationrequired: - operator - valuedescription: A filter that applies a filter to an array of strings
The TypeSpec code for this field is:
/** A filter that applies a filter to an array of strings */model StringArrayFilter { /** The operator to apply to the filter value */ operator: ArrayOperators;
/** The value to use for the filter operation */ @example(["value1", "value2"]) value: string[];}