FailedConsole Output

+ bash ./scripts/cli-validate-openapis-mec.sh ./apis

------ Switching to ./apis folder --------
------ Checking for previous logs ------
Using dockerized validator (etsiforge/swagger-cli:4.0.3)
4.0.3: Pulling from etsiforge/swagger-cli
Digest: sha256:c6987d82d33715ec65ac79532768eb98152d83ed969754aa7f4a9344aea32d9a
Status: Image is up to date for etsiforge/swagger-cli:4.0.3
docker.io/etsiforge/swagger-cli:4.0.3

------ Validating all YAML files (may takes several minutes) ------

-- Final validator returns 1.
Some errors found, see below the details.

---- Errors detected ----
---- Validating ./MEC010p2_v221_definitions.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010p2_v221_definitions.yaml... Something went wrong when processing /specs/MEC010p2_v221_definitions.yaml: - This doesn’t look like an OpenAPI document. . /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20 throw new Error('This doesn’t look like an OpenAPI document.
'); ^ Error: This doesn’t look like an OpenAPI document. at Object.detectOpenAPI (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20:15) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:47:40 at Generator.next (<anonymous>) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:8:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:4:12) at lintDocument (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:44:12) at Object.<anonymous> (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:31:16) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:5:58) Node.js v17.8.0
---- Validating ./MEC010-2_AppLcm.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppLcm.json... [1] ../specs/MEC010-2_AppLcm.json:2198:21 at #/components/schemas/AppInstanceSubscriptionLinkList._links.subscriptions/properties/href/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2196 | "properties": { 2197 | "href": { 2198 | "type": "uri" | ^^^^^ 2199 | }, 2200 | "subscriptionType": { Error was generated by the spec rule. [2] ../specs/MEC010-2_AppLcm.json:2247:21 at #/components/schemas/AppInstIdCreationSubscriptionRequest/properties/callbackUri/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2245 | }, 2246 | "callbackUri": { 2247 | "type": "uri" | ^^^^^ 2248 | }, 2249 | "appInstanceSubscriptionFilter": { Error was generated by the spec rule. [3] ../specs/MEC010-2_AppLcm.json:2266:21 at #/components/schemas/AppInstIdDeletionSubscriptionRequest/properties/callbackUri/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2264 | }, 2265 | "callbackUri": { 2266 | "type": "uri" | ^^^^^ 2267 | }, 2268 | "appInstanceSubscriptionFilter": { Error was generated by the spec rule. [4] ../specs/MEC010-2_AppLcm.json:2289:21 at #/components/schemas/AppInstIdCreationSubscriptionInfo/properties/callbackUri/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2287 | }, 2288 | "callbackUri": { 2289 | "type": "uri" | ^^^^^ 2290 | }, 2291 | "appInstanceSubscriptionFilter": { Error was generated by the spec rule. [5] ../specs/MEC010-2_AppLcm.json:2324:21 at #/components/schemas/AppInstIdDeletionSubscriptionInfo/properties/callbackUri/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2322 | }, 2323 | "callbackUri": { 2324 | "type": "uri" | ^^^^^ 2325 | }, 2326 | "appInstanceSubscriptionFilter": { Error was generated by the spec rule. [6] ../specs/MEC010-2_AppLcm.json:646:17 at #/paths/~1subscriptions/post/callbacks/notification/{$request.body#~1callbackUri}/post/responses Operation must have at least one `4xx` response. 644 | } 645 | }, 646 | "responses": { | ^^^^^^^^^^^ 647 | "204": { 648 | "description": "No content" Warning was generated by the operation-4xx-response rule. s/MEC010-2_AppLcm.json: validated in 313ms ❌ Validation failed with 5 errors and 1 warning. run `openapi lint --generate-ignore-file` to add all problems to the ignore file.
---- Validating ./MEC010-2_AppPkgMgmt.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppPkgMgmt.json... [1] ../specs/MEC010-2_AppPkgMgmt.json:3008:21 at #/components/schemas/CreateAppPkg/properties/appPkgPath/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 3006 | }, 3007 | "appPkgPath": { 3008 | "type": "uri" | ^^^^^ 3009 | }, 3010 | "appPkgVersion": { Error was generated by the spec rule. [2] ../specs/MEC010-2_AppPkgMgmt.json:1294:17 at #/paths/~1subscriptions/post/callbacks/notification/{$request.body#~1subscription.href}/post/responses Operation must have at least one `4xx` response. 1292 | } 1293 | }, 1294 | "responses": { | ^^^^^^^^^^^ 1295 | "204": { 1296 | "description": "No content" Warning was generated by the operation-4xx-response rule. s/MEC010-2_AppPkgMgmt.json: validated in 249ms ❌ Validation failed with 1 error and 1 warning. run `openapi lint --generate-ignore-file` to add all problems to the ignore file.
---- Validating ./MEC010p2_v221_definitions.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010p2_v221_definitions.json... Something went wrong when processing /specs/MEC010p2_v221_definitions.json: - This doesn’t look like an OpenAPI document. . /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20 throw new Error('This doesn’t look like an OpenAPI document.
'); ^ Error: This doesn’t look like an OpenAPI document. at Object.detectOpenAPI (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20:15) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:47:40 at Generator.next (<anonymous>) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:8:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:4:12) at lintDocument (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:44:12) at Object.<anonymous> (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:31:16) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:5:58) Node.js v17.8.0


---- Complete log of validation ----
---- Validating ./MEC010-2_AppGrant.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppGrant.yaml... s/MEC010-2_AppGrant.yaml: validated in 104ms Woohoo! Your OpenAPI definition is valid. 🎉
---- Validating ./MEC010-2_AppLcm.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppLcm.yaml... s/MEC010-2_AppLcm.yaml: validated in 228ms Woohoo! Your OpenAPI definition is valid. 🎉
---- Validating ./MEC010-2_AppPkgMgmt.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppPkgMgmt.yaml... s/MEC010-2_AppPkgMgmt.yaml: validated in 226ms Woohoo! Your OpenAPI definition is valid. 🎉
---- Validating ./MEC010p2_v221_definitions.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010p2_v221_definitions.yaml... Something went wrong when processing /specs/MEC010p2_v221_definitions.yaml: - This doesn’t look like an OpenAPI document. . /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20 throw new Error('This doesn’t look like an OpenAPI document.
'); ^ Error: This doesn’t look like an OpenAPI document. at Object.detectOpenAPI (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20:15) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:47:40 at Generator.next (<anonymous>) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:8:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:4:12) at lintDocument (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:44:12) at Object.<anonymous> (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:31:16) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:5:58) Node.js v17.8.0
---- Validating ./MEC010-2_AppGrant.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppGrant.json... s/MEC010-2_AppGrant.json: validated in 94ms Woohoo! Your OpenAPI definition is valid. 🎉
---- Validating ./MEC010-2_AppLcm.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppLcm.json... [1] ../specs/MEC010-2_AppLcm.json:2198:21 at #/components/schemas/AppInstanceSubscriptionLinkList._links.subscriptions/properties/href/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2196 | "properties": { 2197 | "href": { 2198 | "type": "uri" | ^^^^^ 2199 | }, 2200 | "subscriptionType": { Error was generated by the spec rule. [2] ../specs/MEC010-2_AppLcm.json:2247:21 at #/components/schemas/AppInstIdCreationSubscriptionRequest/properties/callbackUri/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2245 | }, 2246 | "callbackUri": { 2247 | "type": "uri" | ^^^^^ 2248 | }, 2249 | "appInstanceSubscriptionFilter": { Error was generated by the spec rule. [3] ../specs/MEC010-2_AppLcm.json:2266:21 at #/components/schemas/AppInstIdDeletionSubscriptionRequest/properties/callbackUri/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2264 | }, 2265 | "callbackUri": { 2266 | "type": "uri" | ^^^^^ 2267 | }, 2268 | "appInstanceSubscriptionFilter": { Error was generated by the spec rule. [4] ../specs/MEC010-2_AppLcm.json:2289:21 at #/components/schemas/AppInstIdCreationSubscriptionInfo/properties/callbackUri/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2287 | }, 2288 | "callbackUri": { 2289 | "type": "uri" | ^^^^^ 2290 | }, 2291 | "appInstanceSubscriptionFilter": { Error was generated by the spec rule. [5] ../specs/MEC010-2_AppLcm.json:2324:21 at #/components/schemas/AppInstIdDeletionSubscriptionInfo/properties/callbackUri/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 2322 | }, 2323 | "callbackUri": { 2324 | "type": "uri" | ^^^^^ 2325 | }, 2326 | "appInstanceSubscriptionFilter": { Error was generated by the spec rule. [6] ../specs/MEC010-2_AppLcm.json:646:17 at #/paths/~1subscriptions/post/callbacks/notification/{$request.body#~1callbackUri}/post/responses Operation must have at least one `4xx` response. 644 | } 645 | }, 646 | "responses": { | ^^^^^^^^^^^ 647 | "204": { 648 | "description": "No content" Warning was generated by the operation-4xx-response rule. s/MEC010-2_AppLcm.json: validated in 313ms ❌ Validation failed with 5 errors and 1 warning. run `openapi lint --generate-ignore-file` to add all problems to the ignore file.
---- Validating ./MEC010-2_AppPkgMgmt.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppPkgMgmt.json... [1] ../specs/MEC010-2_AppPkgMgmt.json:3008:21 at #/components/schemas/CreateAppPkg/properties/appPkgPath/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 3006 | }, 3007 | "appPkgPath": { 3008 | "type": "uri" | ^^^^^ 3009 | }, 3010 | "appPkgVersion": { Error was generated by the spec rule. [2] ../specs/MEC010-2_AppPkgMgmt.json:1294:17 at #/paths/~1subscriptions/post/callbacks/notification/{$request.body#~1subscription.href}/post/responses Operation must have at least one `4xx` response. 1292 | } 1293 | }, 1294 | "responses": { | ^^^^^^^^^^^ 1295 | "204": { 1296 | "description": "No content" Warning was generated by the operation-4xx-response rule. s/MEC010-2_AppPkgMgmt.json: validated in 249ms ❌ Validation failed with 1 error and 1 warning. run `openapi lint --generate-ignore-file` to add all problems to the ignore file.
---- Validating ./MEC010p2_v221_definitions.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010p2_v221_definitions.json... Something went wrong when processing /specs/MEC010p2_v221_definitions.json: - This doesn’t look like an OpenAPI document. . /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20 throw new Error('This doesn’t look like an OpenAPI document.
'); ^ Error: This doesn’t look like an OpenAPI document. at Object.detectOpenAPI (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20:15) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:47:40 at Generator.next (<anonymous>) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:8:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:4:12) at lintDocument (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:44:12) at Object.<anonymous> (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:31:16) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:5:58) Node.js v17.8.0


------ Content of the folder ------
LICENSE
MEC010-2_AppGrant.json
MEC010-2_AppGrant.yaml
MEC010-2_AppLcm.json
MEC010-2_AppLcm.yaml
MEC010-2_AppPkgMgmt.json
MEC010-2_AppPkgMgmt.yaml
MEC010p2_v221_definitions.json
MEC010p2_v221_definitions.yaml
openapi-validation.log
README.md