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 @@
"license": {
"name": "BSD-3-Clause",
"url": "https://forge.etsi.org/legal-matters"
},
"contact": {
"url": "https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api"
}
},
"externalDocs": {
......@@ -83,6 +86,7 @@
{
"in": "path",
"name": "grantId",
"description": "Identifier of the individual grant.",
"schema": {
"type": "string"
},
......@@ -1010,4 +1014,4 @@
}
}
}
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -5,6 +5,8 @@ info:
license:
name: BSD-3-Clause
url: 'https://forge.etsi.org/legal-matters'
contact:
url: https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api
externalDocs:
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'
......@@ -53,6 +55,7 @@ paths:
parameters:
- in: path
name: grantId
description: 'Identifier of the individual grant.'
schema:
type: string
required: true
......
......@@ -6,6 +6,9 @@
"license": {
"name": "BSD-3-Clause",
"url": "https://forge.etsi.org/legal-matters"
},
"contact": {
"url": "https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api"
}
},
"externalDocs": {
......@@ -172,6 +175,7 @@
{
"in": "path",
"name": "appInstanceId",
"description": "Identifier of an individual application instance",
"schema": {
"type": "string"
},
......@@ -263,6 +267,7 @@
{
"in": "query",
"name": "subscriptionType",
"description": "\"Query parameter to filter on a specific subscription type. Permitted values:\n\"AppInstanceStateChange\"\n\"AppLcmOpOccStateChange\"\n\"",
"schema": {
"oneOf": [
{
......@@ -386,6 +391,7 @@
{
"in": "path",
"name": "subscriptionId",
"description": "Represents an individual subscription to notification related to an application instance",
"schema": {
"type": "string"
},
......@@ -526,6 +532,7 @@
{
"in": "path",
"name": "appInstanceId",
"description": "Identifier of an individual application instance",
"schema": {
"type": "string"
},
......@@ -582,6 +589,7 @@
{
"in": "path",
"name": "appInstanceId",
"description": "Identifier of an individual application instance",
"schema": {
"type": "string"
},
......@@ -638,6 +646,7 @@
{
"in": "path",
"name": "appInstanceId",
"description": "Identifier of an individual application instance",
"schema": {
"type": "string"
},
......@@ -784,6 +793,7 @@
{
"in": "path",
"name": "appLcmOpOccId",
"description": "Identifies an individual application LCM operation occurrence",
"schema": {
"type": "string"
},
......@@ -2019,4 +2029,4 @@
}
}
}
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -5,6 +5,8 @@ info:
license:
name: BSD-3-Clause
url: 'https://forge.etsi.org/legal-matters'
contact:
url: https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api
externalDocs:
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'
......@@ -111,6 +113,7 @@ paths:
parameters:
- in: path
name: appInstanceId
description: 'Identifier of an individual application instance'
schema:
type: string
required: true
......@@ -173,6 +176,12 @@ paths:
parameters:
- in: query
name: subscriptionType
description: >-
"Query parameter to filter on a specific subscription type.
Permitted values:
• "AppInstanceStateChange"
• "AppLcmOpOccStateChange"
"
schema:
oneOf:
- $ref: '#/components/schemas/AppInst.SubscriptionType'
......@@ -243,6 +252,7 @@ paths:
parameters:
- in: path
name: subscriptionId
description: 'Represents an individual subscription to notification related to an application instance'
schema:
type: string
required: true
......@@ -332,6 +342,7 @@ paths:
parameters:
- in: path
name: appInstanceId
description: 'Identifier of an individual application instance'
schema:
type: string
required: true
......@@ -368,6 +379,7 @@ paths:
parameters:
- in: path
name: appInstanceId
description: 'Identifier of an individual application instance'
schema:
type: string
required: true
......@@ -404,6 +416,7 @@ paths:
parameters:
- in: path
name: appInstanceId
description: 'Identifier of an individual application instance'
schema:
type: string
required: true
......@@ -499,6 +512,7 @@ paths:
parameters:
- in: path
name: appLcmOpOccId
description: 'Identifies an individual application LCM operation occurrence'
schema:
type: string
required: true
......
......@@ -6,6 +6,9 @@
"license": {
"name": "BSD-3-Clause",
"url": "https://forge.etsi.org/legal-matters"
},
"contact": {
"url": "https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api"
}
},
"externalDocs": {
......@@ -402,6 +405,7 @@
"schema": {
"type": "string"
},
"description": "Identifier of an individual subscription to notifications about application package changes",
"required": true
}
],
......@@ -515,6 +519,7 @@
"schema": {
"type": "string"
},
"description": "Identifier of an on-boarded individual application package",
"required": true
}
],
......@@ -617,6 +622,7 @@
"schema": {
"type": "string"
},
"description": "Identifier of an application descriptor",
"required": true
}
],
......@@ -719,6 +725,7 @@
"schema": {
"type": "string"
},
"description": "Identifier of an on-boarded individual application package",
"required": true
}
],
......@@ -809,6 +816,7 @@
{
"in": "path",
"name": "appDId",
"description": "Identifier of an application descriptor",
"schema": {
"type": "string"
},
......@@ -2326,4 +2334,4 @@
}
}
}
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -5,6 +5,8 @@ info:
license:
name: BSD-3-Clause
url: 'https://forge.etsi.org/legal-matters'
contact:
url: https://forge.etsi.org/rep/mec/gs010-2-app-pkg-lcm-api
externalDocs:
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'
......@@ -264,6 +266,7 @@ paths:
name: subscriptionId
schema:
type: string
description: 'Identifier of an individual subscription to notifications about application package changes'
required: true
get:
tags:
......@@ -341,6 +344,7 @@ paths:
name: appPkgId
schema:
type: string
description: 'Identifier of an on-boarded individual application package'
required: true
get:
tags:
......@@ -407,6 +411,7 @@ paths:
name: appDId
schema:
type: string
description: 'Identifier of an application descriptor'
required: true
get:
tags:
......@@ -473,6 +478,7 @@ paths:
name: appPkgId
schema:
type: string
description: 'Identifier of an on-boarded individual application package'
required: true
get:
tags:
......@@ -532,6 +538,7 @@ paths:
parameters:
- in: path
name: appDId
description: 'Identifier of an application descriptor'
schema:
type: string
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