(supportedLifecycleRulesConfig)
| 162 | } |
| 163 | |
| 164 | function parseSupportedLifecycleRules(supportedLifecycleRulesConfig) { |
| 165 | const supportedLifecycleRulesSchema = joi.array() |
| 166 | .items(joi.string().valid(...supportedLifecycleRules)) |
| 167 | .default(supportedLifecycleRules) |
| 168 | .min(1); |
| 169 | return joi.attempt( |
| 170 | supportedLifecycleRulesConfig, |
| 171 | supportedLifecycleRulesSchema, |
| 172 | 'bad supported lifecycle rules config', |
| 173 | ); |
| 174 | } |
| 175 | |
| 176 | function restEndpointsAssert(restEndpoints, locationConstraints) { |
| 177 | assert(typeof restEndpoints === 'object', |
no outgoing calls
no test coverage detected