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
This diff is collapsed.
......@@ -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
......@@ -756,4 +759,4 @@ components:
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
\ No newline at end of file
$ref: '#/components/schemas/ProblemDetails'
This diff is collapsed.
......@@ -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
......@@ -172,7 +175,13 @@ paths:
operationId: appLcmSubscriptionsPOST
parameters:
- in: query
name: subscriptionType
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
......
This diff is collapsed.
......@@ -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
......@@ -1747,4 +1754,4 @@ components:
schema:
$ref: '#/components/schemas/ProblemDetails'
AppPkgContent.200:
description: The payload body shall contain a copy of the file representing the AppD or a ZIP file that contains the file or multiple files representing the AppD.
\ No newline at end of file
description: The payload body shall contain a copy of the file representing the AppD or a ZIP file that contains the file or multiple files representing the AppD.
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