Skip to content

Commit a32cacf

Browse files
AlinsRanCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 800c57c commit a32cacf

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

api/v2/apisixroute_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ type ApisixRouteHTTPMatchExprSubject struct {
418418
// Supported values: `Header`, `Query`, `Path`, `Cookie`, `Variable`, `Body`.
419419
// When Scope is `Path`, Name will be ignored.
420420
// When Scope is `Body`, Name supports dot-notation JSON path (e.g., "model.version",
421-
// "messages[*].role") and maps to APISIX's post_arg.<name> variable, which works with
421+
// "messages[*].role") and maps to APISIX's `post_arg.<name>` variable, which works with
422422
// application/json, application/x-www-form-urlencoded, and multipart/form-data.
423423
// +kubebuilder:validation:Enum=Header;Query;Path;Cookie;Variable;Body
424424
Scope string `json:"scope" yaml:"scope"`

config/crd/bases/apisix.apache.org_apisixroutes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ spec:
217217
Supported values: `Header`, `Query`, `Path`, `Cookie`, `Variable`, `Body`.
218218
When Scope is `Path`, Name will be ignored.
219219
When Scope is `Body`, Name supports dot-notation JSON path (e.g., "model.version",
220-
"messages[*].role") and maps to APISIX's post_arg.<name> variable, which works with
220+
"messages[*].role") and maps to APISIX's `post_arg.{name}` variable, which works with
221221
application/json, application/x-www-form-urlencoded, and multipart/form-data.
222222
enum:
223223
- Header

docs/en/latest/reference/api-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ ApisixRouteHTTPMatchExprSubject describes the subject of a route matching expres
11191119

11201120
| Field | Description |
11211121
| --- | --- |
1122-
| `scope` _string_ | Scope specifies the subject scope. Supported values: `Header`, `Query`, `Path`, `Cookie`, `Variable`, `Body`. When Scope is `Path`, Name will be ignored. When Scope is `Body`, Name supports dot-notation JSON path (e.g., "model.version", "messages[*].role") and maps to APISIX's post_arg.<name> variable, which works with application/json, application/x-www-form-urlencoded, and multipart/form-data. |
1122+
| `scope` _string_ | Scope specifies the subject scope. Supported values: `Header`, `Query`, `Path`, `Cookie`, `Variable`, `Body`. When Scope is `Path`, Name will be ignored. When Scope is `Body`, Name supports dot-notation JSON path (e.g., "model.version", "messages[*].role") and maps to APISIX's `post_arg.<name>` variable, which works with application/json, application/x-www-form-urlencoded, and multipart/form-data. |
11231123
| `name` _string_ | Name is the name of the subject within the given scope: the header name, query parameter name, cookie name, Nginx variable name, or body field name (dot-notation JSON path supported for Body scope). Optional when Scope is Path. |
11241124

11251125

0 commit comments

Comments
 (0)