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 model.
{ "operator": "eq", "value": "value"}
The JSON Schema for this model.
$schema: https://json-schema.org/draft/2020-12/schema$id: StringComparisonFilter.yamltype: objectproperties: operator: anyOf: - $ref: EquivalenceOperators.yaml - $ref: StringOperators.yaml description: The operator to apply to the filter value value: type: string examples: - value description: The value to use for the filter operationrequired: - operator - valuedescription: A filter that applies a comparison to a string value
The TypeSpec code for this model.
/** 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 model.
{ "operator": "eq", "value": ["value1", "value2"]}
The JSON Schema for this model.
$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: Filters by comparing a field to an array of string values
The TypeSpec code for this model.
/** Filters by comparing a field to an array of string values */model StringArrayFilter { /** The operator to apply to the filter value */ operator: ArrayOperators;
/** The value to use for the filter operation */ @example(#["value1", "value2"]) value: Array<string>;}