Skip to content

Commit fcda5bd

Browse files
committed
Update KrakenD schemas
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent e2ab9dc commit fcda5bd

File tree

5 files changed

+62
-12
lines changed

5 files changed

+62
-12
lines changed

DEPENDENCIES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ manfred-mac-0-5 https://github.com/getmanfred/mac v0.5
2626
manfred-mac-0-4 https://github.com/getmanfred/mac v0.4
2727
manfred-mac-0-3 https://github.com/getmanfred/mac v0.3
2828
movielabs-omc-2-6 https://github.com/MovieLabs/OMC v2.6-release-1
29-
krakend https://github.com/krakend/krakend-schema 9193cfffbdce30aec18bf1f90a4cde499e9089f8
29+
krakend https://github.com/krakend/krakend-schema 473daa217c7a02de7e947cf682bf5ab0cffa21dc
3030
octue-power-curve https://github.com/octue/power-curve-schema 1.0.0.alpha-1
3131
usnistgov-mgi-2022-08 https://github.com/usnistgov/mgi-json-schema e5e6aaf3f5eae0d15b88ecbd57f44cc28b035f11
3232
cloudevents-1-0-0 https://github.com/cloudevents/spec v1.0

vendor/krakend/v2.10/endpoint_extra_config.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,19 @@
127127
"sequential_propagated_params": {
128128
"title": "Sequential propagated parameters",
129129
"description": "The list of parameters you want to propagate from a previous response to the next request. Parameters are accessible by Lua scripts, CEL, security policies, the body generator, or plugins. When you add a `resp`-like parameter in this list, the parameter becomes available to the components mentioned in subsequent calls, **uppercasing the first letter**. For instance, if you add `resp0_user`, you can access in the second, third, etc. backends in Lua to `req:params('Resp0_user')`.The format of the parameters must start with `respX_` or `respX`, where `X` is the backend index from which you want to take the parameter. If you don't set the underscore `_`, you set the whole payload as a parameter. For instance, `resp0` sets a parameter `Resp0` to use in Lua or a Body generator and contains **the entire payload of the backend 0** (as a string). In this extreme case, you must use `no-op` in the backend's output (even the endpoint has a `json` output encoding) and you should access the value in Lua or a plugin. Note that access to **nested parameters** uses a single string with the dot notation inside, e.g.: `req_params['Resp0_f1.f2.f3']` (CEL and Security Policies), or `{{ index .req_params \"Resp0_f1.f2.f3\" }}` (body generators).\n\nSee: https://www.krakend.io/docs/endpoints/sequential-proxy/",
130+
"examples": [
131+
[
132+
"resp0"
133+
],
134+
[
135+
"resp1_my_field",
136+
"resp0_user_id"
137+
]
138+
],
130139
"type": "array",
131140
"items": {
132141
"title": "Propagated parameter name",
133142
"description": "A `resp`-like string that references the field you want to set a parameter and use it in the next backend call.",
134-
"examples": [
135-
"resp0",
136-
"resp1_my_field",
137-
"resp0_user_id"
138-
],
139143
"type": "string",
140144
"pattern": "^resp[0-9]+(_[^\\s]+)?$"
141145
}

vendor/krakend/v2.10/workflow_extra_config.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,27 @@
4747
"default": true,
4848
"type": "boolean"
4949
},
50+
"sequential_propagated_params": {
51+
"$id": "#endpoint_extra_config/proxy/sequential_propagated_params",
52+
"title": "Sequential propagated parameters",
53+
"description": "The list of parameters you want to propagate from a previous response to the next request. Parameters are accessible by Lua scripts, CEL, security policies, the body generator, or plugins. When you add a `resp`-like parameter in this list, the parameter becomes available to the components mentioned in subsequent calls, **uppercasing the first letter**. For instance, if you add `resp0_user`, you can access in the second, third, etc. backends in Lua to `req:params('Resp0_user')`.The format of the parameters must start with `respX_` or `respX`, where `X` is the backend index from which you want to take the parameter. If you don't set the underscore `_`, you set the whole payload as a parameter. For instance, `resp0` sets a parameter `Resp0` to use in Lua or a Body generator and contains **the entire payload of the backend 0** (as a string). In this extreme case, you must use `no-op` in the backend's output (even the endpoint has a `json` output encoding) and you should access the value in Lua or a plugin. Note that access to **nested parameters** uses a single string with the dot notation inside, e.g.: `req_params['Resp0_f1.f2.f3']` (CEL and Security Policies), or `{{ index .req_params \"Resp0_f1.f2.f3\" }}` (body generators).\n\nSee: https://www.krakend.io/docs/endpoints/sequential-proxy/",
54+
"examples": [
55+
[
56+
"resp0"
57+
],
58+
[
59+
"resp1_my_field",
60+
"resp0_user_id"
61+
]
62+
],
63+
"type": "array",
64+
"items": {
65+
"title": "Propagated parameter name",
66+
"description": "A `resp`-like string that references the field you want to set a parameter and use it in the next backend call.",
67+
"type": "string",
68+
"pattern": "^resp[0-9]+(_[^\\s]+)?$"
69+
}
70+
},
5071
"static": {
5172
"$id": "#endpoint_extra_config/proxy/static",
5273
"title": "Static response",

vendor/krakend/v2.9/endpoint_extra_config.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,20 @@
126126
},
127127
"sequential_propagated_params": {
128128
"title": "Sequential propagated parameters",
129-
"description": "The list of parameters you want to propagate from a previous response to the next request. Parameters are accessible by Lua scripts, CEL, security policies, the body generator, or plugins. When you add a `resp`-like parameter in this list, the parameter becomes available to the components mentioned in subsequent calls, uppercasing the first letter. For instance, if you add `resp0_user`, you can access in the second, third, etc. backends in Lua to `req:params('Resp0_user')`.The format of the parameters must start with `respX_` or `respX`, where `X` is the backend index from which you want to take the parameter. If you don't set the underscore `_`, you set the whole payload as a parameter. For instance, `resp0` sets a parameter `Resp0` to use in Lua or a Body generator and contains **the entire payload of the backend 0** (as a string). In this extreme case, you must use `no-op` in the backend's output (even the endpoint has a `json` output encoding) and you should access the value in Lua or a plugin.",
129+
"description": "The list of parameters you want to propagate from a previous response to the next request. Parameters are accessible by Lua scripts, CEL, security policies, the body generator, or plugins. When you add a `resp`-like parameter in this list, the parameter becomes available to the components mentioned in subsequent calls, **uppercasing the first letter**. For instance, if you add `resp0_user`, you can access in the second, third, etc. backends in Lua to `req:params('Resp0_user')`.The format of the parameters must start with `respX_` or `respX`, where `X` is the backend index from which you want to take the parameter. If you don't set the underscore `_`, you set the whole payload as a parameter. For instance, `resp0` sets a parameter `Resp0` to use in Lua or a Body generator and contains **the entire payload of the backend 0** (as a string). In this extreme case, you must use `no-op` in the backend's output (even the endpoint has a `json` output encoding) and you should access the value in Lua or a plugin. Note that access to **nested parameters** uses a single string with the dot notation inside, e.g.: `req_params['Resp0_f1.f2.f3']` (CEL and Security Policies), or `{{ index .req_params \"Resp0_f1.f2.f3\" }}` (body generators).\n\nSee: https://www.krakend.io/docs/endpoints/sequential-proxy/",
130+
"examples": [
131+
[
132+
"resp0"
133+
],
134+
[
135+
"resp1_my_field",
136+
"resp0_user_id"
137+
]
138+
],
130139
"type": "array",
131140
"items": {
132141
"title": "Propagated parameter name",
133142
"description": "A `resp`-like string that references the field you want to set a parameter and use it in the next backend call.",
134-
"examples": [
135-
"resp0",
136-
"resp1_my_field",
137-
"resp0_user_id"
138-
],
139143
"type": "string",
140144
"pattern": "^resp[0-9]+(_[^\\s]+)?$"
141145
}

vendor/krakend/v2.9/workflow_extra_config.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,27 @@
4747
"default": true,
4848
"type": "boolean"
4949
},
50+
"sequential_propagated_params": {
51+
"$id": "#endpoint_extra_config/proxy/sequential_propagated_params",
52+
"title": "Sequential propagated parameters",
53+
"description": "The list of parameters you want to propagate from a previous response to the next request. Parameters are accessible by Lua scripts, CEL, security policies, the body generator, or plugins. When you add a `resp`-like parameter in this list, the parameter becomes available to the components mentioned in subsequent calls, **uppercasing the first letter**. For instance, if you add `resp0_user`, you can access in the second, third, etc. backends in Lua to `req:params('Resp0_user')`.The format of the parameters must start with `respX_` or `respX`, where `X` is the backend index from which you want to take the parameter. If you don't set the underscore `_`, you set the whole payload as a parameter. For instance, `resp0` sets a parameter `Resp0` to use in Lua or a Body generator and contains **the entire payload of the backend 0** (as a string). In this extreme case, you must use `no-op` in the backend's output (even the endpoint has a `json` output encoding) and you should access the value in Lua or a plugin. Note that access to **nested parameters** uses a single string with the dot notation inside, e.g.: `req_params['Resp0_f1.f2.f3']` (CEL and Security Policies), or `{{ index .req_params \"Resp0_f1.f2.f3\" }}` (body generators).\n\nSee: https://www.krakend.io/docs/endpoints/sequential-proxy/",
54+
"examples": [
55+
[
56+
"resp0"
57+
],
58+
[
59+
"resp1_my_field",
60+
"resp0_user_id"
61+
]
62+
],
63+
"type": "array",
64+
"items": {
65+
"title": "Propagated parameter name",
66+
"description": "A `resp`-like string that references the field you want to set a parameter and use it in the next backend call.",
67+
"type": "string",
68+
"pattern": "^resp[0-9]+(_[^\\s]+)?$"
69+
}
70+
},
5071
"static": {
5172
"$id": "#endpoint_extra_config/proxy/static",
5273
"title": "Static response",

0 commit comments

Comments
 (0)