File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
plugins/orchestrator-backend Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 63
63
"winston" : " ^3.11.0" ,
64
64
"yn" : " ^5.0.0" ,
65
65
"moment" : " ^2.29.4" ,
66
+ "ajv-formats" : " ^2.1.1" ,
66
67
"js-yaml" : " ^4.1.0"
67
68
},
68
69
"devDependencies" : {},
Original file line number Diff line number Diff line change 86
86
"openapi-types" : " ^12.1.3" ,
87
87
"winston" : " ^3.11.0" ,
88
88
"yn" : " ^5.0.0" ,
89
- "moment" : " ^2.29.4"
89
+ "moment" : " ^2.29.4" ,
90
+ "ajv-formats" : " ^2.1.1"
90
91
},
91
92
"devDependencies" : {
92
93
"@backstage/cli" : " 0.25.2" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { DiscoveryApi } from '@backstage/core-plugin-api';
3
3
import { ScmIntegrations } from '@backstage/integration' ;
4
4
import { JsonObject , JsonValue } from '@backstage/types' ;
5
5
6
+ import { fullFormats } from 'ajv-formats/dist/formats' ;
6
7
import express from 'express' ;
7
8
import Router from 'express-promise-router' ;
8
9
import { OpenAPIBackend , Request } from 'openapi-backend' ;
@@ -146,6 +147,7 @@ function initOpenAPIBackend(): OpenAPIBackend {
146
147
strictSchema : false ,
147
148
verbose : true ,
148
149
addUsedSchema : false ,
150
+ formats : fullFormats , // open issue: https://github.com/openapistack/openapi-backend/issues/280
149
151
} ,
150
152
handlers : {
151
153
validationFail : async (
You can’t perform that action at this time.
0 commit comments