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: ...@@ -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
...@@ -756,4 +759,4 @@ components: ...@@ -756,4 +759,4 @@ components:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ProblemDetails' $ref: '#/components/schemas/ProblemDetails'
\ No newline at end of file
This diff is collapsed.
...@@ -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
...@@ -172,7 +175,13 @@ paths: ...@@ -172,7 +175,13 @@ paths:
operationId: appLcmSubscriptionsPOST operationId: appLcmSubscriptionsPOST
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
......
This diff is collapsed.
...@@ -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
...@@ -1747,4 +1754,4 @@ components: ...@@ -1747,4 +1754,4 @@ components:
schema: schema:
$ref: '#/components/schemas/ProblemDetails' $ref: '#/components/schemas/ProblemDetails'
AppPkgContent.200: 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. 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
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