Skip to content

Commit

Permalink
fix: gateway schema default value and bump version to v0.3.2
Browse files Browse the repository at this point in the history
Signed-off-by: Peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed Oct 31, 2024
1 parent 52cb5a9 commit 511eb1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gateway-api/kcl.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gateway-api"
edition = "0.0.1"
version = "0.3.1"
version = "0.3.2"

[dependencies]
k8s = "1.31.2"
4 changes: 2 additions & 2 deletions gateway-api/v1/gateway_networking_k8s_io_v1_http_route.k
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ schema GatewayNetworkingK8sIoV1HTTPRouteSpec:



rules : [GatewayNetworkingK8sIoV1HTTPRouteSpecRulesItems0], default is [{"matches": {"value": [{"path": {"value": {"type": {"value": "PathPrefix", "x-order": 0}, "value": {"value": "/", "x-order": 1}}, "x-order": 0}}], "x-order": 0}}], optional
rules : [GatewayNetworkingK8sIoV1HTTPRouteSpecRulesItems0], default is [{matches: [{path: {$type: "PathPrefix", value: "/"}}]}], optional
Rules are a list of HTTP matchers, filters and actions.
"""

Expand All @@ -200,7 +200,7 @@ schema GatewayNetworkingK8sIoV1HTTPRouteSpec:

parentRefs?: [GatewayNetworkingK8sIoV1HTTPRouteSpecParentRefsItems0]

rules?: [GatewayNetworkingK8sIoV1HTTPRouteSpecRulesItems0] = [{"matches": {"value": [{"path": {"x-order": 0, "value": {"type": {"value": "PathPrefix", "x-order": 0}, "value": {"value": "/", "x-order": 1}}}}], "x-order": 0}}]
rules?: [GatewayNetworkingK8sIoV1HTTPRouteSpecRulesItems0] = [{matches: [{path: {$type: "PathPrefix", value: "/"}}]}]


check:
Expand Down

0 comments on commit 511eb1c

Please sign in to comment.