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

Minor fixes on validation

parent 64b3f3de
Loading
Loading
Loading
Loading

.jenkins.sh

0 → 100755
+18 −0
Original line number Diff line number Diff line
#!/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
+928 −924
Original line number Diff line number Diff line
@@ -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"
            },
+4 −1
Original line number Diff line number Diff line
@@ -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     
+1824 −1814
Original line number Diff line number Diff line
@@ -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"
            },
+15 −1
Original line number Diff line number Diff line
@@ -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    
Loading