Commit df701604 authored by Elian Kraja's avatar Elian Kraja
Browse files

Minor fixes on validation

parent 64b3f3de
#!/bin/bash
specfiles=$(ls | egrep "^[^.]*.(json|yaml)")
fres=0
for i in $specfiles ; do
echo "-- Validating and linting OpenAPI file $i..."
swagger-cli validate $i
res=$?
speccy lint "$i"
res2=$?
fres=$(($fres||$res||$res2))
echo "--- Validator returned $res, linter returned $res2."
done
echo "-- Final validator returns $fres."
exit $fres
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
"license": { "license": {
"name": "BSD-3-Clause", "name": "BSD-3-Clause",
"url": "https://forge.etsi.org/legal-matters" "url": "https://forge.etsi.org/legal-matters"
},
"contact": {
"url": "https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api"
} }
}, },
"externalDocs": { "externalDocs": {
...@@ -83,6 +86,7 @@ ...@@ -83,6 +86,7 @@
{ {
"in": "path", "in": "path",
"name": "grantId", "name": "grantId",
"description": "Identifier of the individual grant.",
"schema": { "schema": {
"type": "string" "type": "string"
}, },
...@@ -1010,4 +1014,4 @@ ...@@ -1010,4 +1014,4 @@
} }
} }
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,6 +5,8 @@ info: ...@@ -5,6 +5,8 @@ info:
license: license:
name: BSD-3-Clause name: BSD-3-Clause
url: 'https://forge.etsi.org/legal-matters' url: 'https://forge.etsi.org/legal-matters'
contact:
url: https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api
externalDocs: externalDocs:
description: "ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, v2.1.1" description: "ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, v2.1.1"
url: 'https://www.etsi.org/deliver/etsi_gs/MEC/001_099/01002/02.01.01_60/gs_MEC01002v020101p.pdf' url: 'https://www.etsi.org/deliver/etsi_gs/MEC/001_099/01002/02.01.01_60/gs_MEC01002v020101p.pdf'
...@@ -53,6 +55,7 @@ paths: ...@@ -53,6 +55,7 @@ paths:
parameters: parameters:
- in: path - in: path
name: grantId name: grantId
description: 'Identifier of the individual grant.'
schema: schema:
type: string type: string
required: true required: true
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
"license": { "license": {
"name": "BSD-3-Clause", "name": "BSD-3-Clause",
"url": "https://forge.etsi.org/legal-matters" "url": "https://forge.etsi.org/legal-matters"
},
"contact": {
"url": "https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api"
} }
}, },
"externalDocs": { "externalDocs": {
...@@ -172,6 +175,7 @@ ...@@ -172,6 +175,7 @@
{ {
"in": "path", "in": "path",
"name": "appInstanceId", "name": "appInstanceId",
"description": "Identifier of an individual application instance",
"schema": { "schema": {
"type": "string" "type": "string"
}, },
...@@ -263,6 +267,7 @@ ...@@ -263,6 +267,7 @@
{ {
"in": "query", "in": "query",
"name": "subscriptionType", "name": "subscriptionType",
"description": "\"Query parameter to filter on a specific subscription type. Permitted values:\n\"AppInstanceStateChange\"\n\"AppLcmOpOccStateChange\"\n\"",
"schema": { "schema": {
"oneOf": [ "oneOf": [
{ {
...@@ -386,6 +391,7 @@ ...@@ -386,6 +391,7 @@
{ {
"in": "path", "in": "path",
"name": "subscriptionId", "name": "subscriptionId",
"description": "Represents an individual subscription to notification related to an application instance",
"schema": { "schema": {
"type": "string" "type": "string"
}, },
...@@ -526,6 +532,7 @@ ...@@ -526,6 +532,7 @@
{ {
"in": "path", "in": "path",
"name": "appInstanceId", "name": "appInstanceId",
"description": "Identifier of an individual application instance",
"schema": { "schema": {
"type": "string" "type": "string"
}, },
...@@ -582,6 +589,7 @@ ...@@ -582,6 +589,7 @@
{ {
"in": "path", "in": "path",
"name": "appInstanceId", "name": "appInstanceId",
"description": "Identifier of an individual application instance",
"schema": { "schema": {
"type": "string" "type": "string"
}, },
...@@ -638,6 +646,7 @@ ...@@ -638,6 +646,7 @@
{ {
"in": "path", "in": "path",
"name": "appInstanceId", "name": "appInstanceId",
"description": "Identifier of an individual application instance",
"schema": { "schema": {
"type": "string" "type": "string"
}, },
...@@ -784,6 +793,7 @@ ...@@ -784,6 +793,7 @@
{ {
"in": "path", "in": "path",
"name": "appLcmOpOccId", "name": "appLcmOpOccId",
"description": "Identifies an individual application LCM operation occurrence",
"schema": { "schema": {
"type": "string" "type": "string"
}, },
...@@ -2019,4 +2029,4 @@ ...@@ -2019,4 +2029,4 @@
} }
} }
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,6 +5,8 @@ info: ...@@ -5,6 +5,8 @@ info:
license: license:
name: BSD-3-Clause name: BSD-3-Clause
url: 'https://forge.etsi.org/legal-matters' url: 'https://forge.etsi.org/legal-matters'
contact:
url: https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api
externalDocs: externalDocs:
description: "ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, v2.1.1" description: "ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, v2.1.1"
url: 'https://www.etsi.org/deliver/etsi_gs/MEC/001_099/01002/02.01.01_60/gs_MEC01002v020101p.pdf' url: 'https://www.etsi.org/deliver/etsi_gs/MEC/001_099/01002/02.01.01_60/gs_MEC01002v020101p.pdf'
...@@ -111,6 +113,7 @@ paths: ...@@ -111,6 +113,7 @@ paths:
parameters: parameters:
- in: path - in: path
name: appInstanceId name: appInstanceId
description: 'Identifier of an individual application instance'
schema: schema:
type: string type: string
required: true required: true
...@@ -173,6 +176,12 @@ paths: ...@@ -173,6 +176,12 @@ paths:
parameters: parameters:
- in: query - in: query
name: subscriptionType name: subscriptionType
description: >-
"Query parameter to filter on a specific subscription type.
Permitted values:
• "AppInstanceStateChange"
• "AppLcmOpOccStateChange"
"
schema: schema:
oneOf: oneOf:
- $ref: '#/components/schemas/AppInst.SubscriptionType' - $ref: '#/components/schemas/AppInst.SubscriptionType'
...@@ -243,6 +252,7 @@ paths: ...@@ -243,6 +252,7 @@ paths:
parameters: parameters:
- in: path - in: path
name: subscriptionId name: subscriptionId
description: 'Represents an individual subscription to notification related to an application instance'
schema: schema:
type: string type: string
required: true required: true
...@@ -332,6 +342,7 @@ paths: ...@@ -332,6 +342,7 @@ paths:
parameters: parameters:
- in: path - in: path
name: appInstanceId name: appInstanceId
description: 'Identifier of an individual application instance'
schema: schema:
type: string type: string
required: true required: true
...@@ -368,6 +379,7 @@ paths: ...@@ -368,6 +379,7 @@ paths:
parameters: parameters:
- in: path - in: path
name: appInstanceId name: appInstanceId
description: 'Identifier of an individual application instance'
schema: schema:
type: string type: string
required: true required: true
...@@ -404,6 +416,7 @@ paths: ...@@ -404,6 +416,7 @@ paths:
parameters: parameters:
- in: path - in: path
name: appInstanceId name: appInstanceId
description: 'Identifier of an individual application instance'
schema: schema:
type: string type: string
required: true required: true
...@@ -499,6 +512,7 @@ paths: ...@@ -499,6 +512,7 @@ paths:
parameters: parameters:
- in: path - in: path
name: appLcmOpOccId name: appLcmOpOccId
description: 'Identifies an individual application LCM operation occurrence'
schema: schema:
type: string type: string
required: true required: true
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
"license": { "license": {
"name": "BSD-3-Clause", "name": "BSD-3-Clause",
"url": "https://forge.etsi.org/legal-matters" "url": "https://forge.etsi.org/legal-matters"
},
"contact": {
"url": "https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api"
} }
}, },
"externalDocs": { "externalDocs": {
...@@ -402,6 +405,7 @@ ...@@ -402,6 +405,7 @@
"schema": { "schema": {
"type": "string" "type": "string"
}, },
"description": "Identifier of an individual subscription to notifications about application package changes",
"required": true "required": true
} }
], ],
...@@ -515,6 +519,7 @@ ...@@ -515,6 +519,7 @@
"schema": { "schema": {
"type": "string" "type": "string"
}, },
"description": "Identifier of an on-boarded individual application package",
"required": true "required": true
} }
], ],
...@@ -617,6 +622,7 @@ ...@@ -617,6 +622,7 @@
"schema": { "schema": {
"type": "string" "type": "string"
}, },
"description": "Identifier of an application descriptor",
"required": true "required": true
} }
], ],
...@@ -719,6 +725,7 @@ ...@@ -719,6 +725,7 @@
"schema": { "schema": {
"type": "string" "type": "string"
}, },
"description": "Identifier of an on-boarded individual application package",
"required": true "required": true
} }
], ],
...@@ -809,6 +816,7 @@ ...@@ -809,6 +816,7 @@
{ {
"in": "path", "in": "path",
"name": "appDId", "name": "appDId",
"description": "Identifier of an application descriptor",
"schema": { "schema": {
"type": "string" "type": "string"
}, },
...@@ -2326,4 +2334,4 @@ ...@@ -2326,4 +2334,4 @@
} }
} }
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,6 +5,8 @@ info: ...@@ -5,6 +5,8 @@ info:
license: license:
name: BSD-3-Clause name: BSD-3-Clause
url: 'https://forge.etsi.org/legal-matters' url: 'https://forge.etsi.org/legal-matters'
contact:
url: https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api
externalDocs: externalDocs:
description: "ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, v2.1.1" description: "ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, v2.1.1"
url: 'https://www.etsi.org/deliver/etsi_gs/MEC/001_099/01002/02.01.01_60/gs_MEC01002v020101p.pdf' url: 'https://www.etsi.org/deliver/etsi_gs/MEC/001_099/01002/02.01.01_60/gs_MEC01002v020101p.pdf'
...@@ -264,6 +266,7 @@ paths: ...@@ -264,6 +266,7 @@ paths:
name: subscriptionId name: subscriptionId
schema: schema:
type: string type: string
description: 'Identifier of an individual subscription to notifications about application package changes'
required: true required: true
get: get:
tags: tags:
...@@ -341,6 +344,7 @@ paths: ...@@ -341,6 +344,7 @@ paths:
name: appPkgId name: appPkgId
schema: schema:
type: string type: string
description: 'Identifier of an on-boarded individual application package'
required: true required: true
get: get:
tags: tags:
...@@ -407,6 +411,7 @@ paths: ...@@ -407,6 +411,7 @@ paths:
name: appDId name: appDId
schema: schema:
type: string type: string
description: 'Identifier of an application descriptor'
required: true required: true
get: get:
tags: tags:
...@@ -473,6 +478,7 @@ paths: ...@@ -473,6 +478,7 @@ paths:
name: appPkgId name: appPkgId
schema: schema:
type: string type: string
description: 'Identifier of an on-boarded individual application package'
required: true required: true
get: get:
tags: tags:
...@@ -532,6 +538,7 @@ paths: ...@@ -532,6 +538,7 @@ paths:
parameters: parameters:
- in: path - in: path
name: appDId name: appDId
description: 'Identifier of an application descriptor'
schema: schema:
type: string type: string
required: true required: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment