$id: "https://schema.beckn.io/Intent/v2.0" $schema: "https://json-schema.org/draft/2020-12/schema" description: A declaration of an intent to discover catalogs. title: Intent x-tags: [common] type: object properties: textSearch: description: Free text search query for items type: string example: gaming laptop premium tech filters: description: Filter criteria for items type: object properties: type: description: Type of filter expression type: string enum: - jsonpath default: jsonpath expression: description: Filter expression based on the specified type type: string example: $[?(@.rating.value >= 4.0 && @.electronic.brand.name == 'Premium Tech')] required: - type - expression spatial: description: Optional array of spatial constraints (CQL2-JSON semantics). type: array items: $ref: "https://schema.beckn.io/SpatialConstraint/v2.0" media_search: $ref: "https://schema.beckn.io/MediaSearch/v2.0" anyOf: - required: - textSearch - required: - filters - required: - spatial - required: - filters - spatial additionalProperties: false