From ef9ed9400151ea63c930de1a4ee74b7dc605e45f Mon Sep 17 00:00:00 2001 From: "shopify-dev-bot[bot]" <95105344+shopify-dev-bot[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 19:00:09 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Sync=20Liquid=20Docs=20Schema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/filters.json | 78 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/data/filters.json b/data/filters.json index fb6f3b6..7ce480f 100644 --- a/data/filters.json +++ b/data/filters.json @@ -2075,7 +2075,7 @@ { "description": "Whether to use false values instead of the default.", "name": "allow_false", - "positional": true, + "positional": false, "required": false, "types": [ "boolean" @@ -2236,6 +2236,44 @@ "syntax": "string | escape_once", "name": "escape_once" }, + { + "category": "array", + "deprecated": false, + "deprecation_reason": "", + "description": "This requires you to provide both the property name and the associated value.", + "parameters": [], + "return_type": [ + { + "type": "untyped", + "name": "", + "description": "", + "array_value": "" + } + ], + "examples": [], + "summary": "Returns the first item in an array with a specific property value.", + "syntax": "array | find: string, string", + "name": "find" + }, + { + "category": "array", + "deprecated": false, + "deprecation_reason": "", + "description": "This requires you to provide both the property name and the associated value.", + "parameters": [], + "return_type": [ + { + "type": "number", + "name": "", + "description": "", + "array_value": "" + } + ], + "examples": [], + "summary": "Returns the index of the first item in an array with a specific property value.", + "syntax": "array | find_index: string, string", + "name": "find_index" + }, { "category": "array", "deprecated": false, @@ -2306,6 +2344,25 @@ "syntax": "number | floor", "name": "floor" }, + { + "category": "array", + "deprecated": false, + "deprecation_reason": "", + "description": "This requires you to provide both the property name and the associated value.", + "parameters": [], + "return_type": [ + { + "type": "boolean", + "name": "", + "description": "", + "array_value": "" + } + ], + "examples": [], + "summary": "Tests if any item in an array has a specific property value.", + "syntax": "array | some: string, string", + "name": "has" + }, { "category": "array", "deprecated": false, @@ -2596,6 +2653,25 @@ "syntax": "string | prepend: string", "name": "prepend" }, + { + "category": "array", + "deprecated": false, + "deprecation_reason": "", + "description": "This requires you to provide both the property name and the associated value.", + "parameters": [], + "return_type": [ + { + "type": "array", + "name": "", + "description": "", + "array_value": "untyped" + } + ], + "examples": [], + "summary": "Filters an array to exclude items with a specific property value.", + "syntax": "array | reject: string, string", + "name": "reject" + }, { "category": "string", "deprecated": false,