We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f6c763 commit a58d7a2Copy full SHA for a58d7a2
src/commands/api/validate.js
@@ -31,9 +31,20 @@ class ValidateCommand extends BaseCommand {
31
return this.executeHttp({
32
execute: () => getApi([apiPath, 'standardization']),
33
onResolve: pipeAsync(getResponseContent, JSON.parse),
34
+ onReject: () => this.getFallbackValidationResult(apiPath),
35
options: {}
36
})
37
}
38
+
39
+ /* Required to support older on-prem installations */
40
+ getFallbackValidationResult(apiPath) {
41
+ return this.executeHttp({
42
+ execute: () => getApi([apiPath, 'validation']),
43
+ onResolve: pipeAsync(getResponseContent, JSON.parse),
44
+ options: {}
45
+ })
46
+ }
47
48
49
50
ValidateCommand.description = `get validation result for an API version
0 commit comments