@cxtms/cx-schema 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -66,21 +66,27 @@
|
|
|
66
66
|
"body": {
|
|
67
67
|
"description": "Request body (can be string or object)"
|
|
68
68
|
},
|
|
69
|
-
"
|
|
70
|
-
"type": "integer",
|
|
71
|
-
"description": "Request timeout in milliseconds"
|
|
72
|
-
},
|
|
73
|
-
"retry": {
|
|
69
|
+
"retryOptions": {
|
|
74
70
|
"type": "object",
|
|
75
71
|
"properties": {
|
|
76
|
-
"
|
|
77
|
-
"type": "integer"
|
|
72
|
+
"limit": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"description": "Number of retry attempts"
|
|
78
75
|
},
|
|
79
|
-
"
|
|
80
|
-
"type": "
|
|
76
|
+
"codes": {
|
|
77
|
+
"type": "array",
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "integer"
|
|
80
|
+
},
|
|
81
|
+
"description": "HTTP status codes that trigger a retry (e.g. [429, 502, 503])"
|
|
81
82
|
}
|
|
82
83
|
},
|
|
83
|
-
"description": "Retry configuration"
|
|
84
|
+
"description": "Retry configuration with exponential backoff"
|
|
85
|
+
},
|
|
86
|
+
"circuitBreaker": {
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"default": true,
|
|
89
|
+
"description": "Enable circuit breaker for the target host (default: true). When open, serves stale cache or throws."
|
|
84
90
|
},
|
|
85
91
|
"responseContentType": {
|
|
86
92
|
"type": "string",
|
|
@@ -112,14 +118,23 @@
|
|
|
112
118
|
"cache": {
|
|
113
119
|
"type": "object",
|
|
114
120
|
"properties": {
|
|
115
|
-
"
|
|
116
|
-
"type": "
|
|
121
|
+
"enabled": {
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"default": true,
|
|
124
|
+
"description": "Enable response caching"
|
|
117
125
|
},
|
|
118
126
|
"duration": {
|
|
119
|
-
"type": "string"
|
|
127
|
+
"type": "string",
|
|
128
|
+
"default": "1h",
|
|
129
|
+
"description": "Cache duration (e.g. '30s', '5m', '1h', '2d', 'EndOfDay', 'EndOfDay|America/Chicago')"
|
|
130
|
+
},
|
|
131
|
+
"useSlidingExpiration": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"default": false,
|
|
134
|
+
"description": "Use sliding expiration instead of absolute"
|
|
120
135
|
}
|
|
121
136
|
},
|
|
122
|
-
"description": "Response caching configuration"
|
|
137
|
+
"description": "Response caching configuration. Cache key is auto-generated from url + method + headers + body."
|
|
123
138
|
}
|
|
124
139
|
},
|
|
125
140
|
"required": ["url", "method"],
|