Commit 869ccfa7 authored by Elian Kraja's avatar Elian Kraja
Browse files

Merge branch 'stf606-draft' into 'stf606-final'

Update editor and validation tools

See merge request !16
parents 2a7ff233 c58571e5
Loading
Loading
Loading
Loading
Loading

.jenkins.sh

deleted100644 → 0
+0 −18
Original line number Original line 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 validation returns $fres."

exit $fres
 No newline at end of file
+184 −79

File changed.

Preview size limit exceeded, changes collapsed.

+15 −8
Original line number Original line Diff line number Diff line
@@ -30,6 +30,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appTrafficRules
      - appTrafficRules
      summary: 'get traffic rules'
      description: This method retrieves information about all the traffic rules associated with a MEC application instance.
      description: This method retrieves information about all the traffic rules associated with a MEC application instance.
      operationId: ApplicationsTrafficRules_GET
      operationId: ApplicationsTrafficRules_GET
      parameters:
      parameters:
@@ -132,7 +133,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appTrafficRules
      - appTrafficRules

      summary: 'Get traffic rule'
      description: This method retrieves information about all the traffic rules associated with a MEC application instance.
      description: This method retrieves information about all the traffic rules associated with a MEC application instance.
      operationId: ApplicationsTrafficRule_GET
      operationId: ApplicationsTrafficRule_GET
      parameters:
      parameters:
@@ -214,7 +215,7 @@ paths:
    put:
    put:
      tags:
      tags:
      - appTrafficRules
      - appTrafficRules

      summary: 'Update traffic rule'
      description: This method retrieves information about all the traffic rules associated with a MEC application instance.
      description: This method retrieves information about all the traffic rules associated with a MEC application instance.
      operationId: ApplicationsTrafficRule_PUT
      operationId: ApplicationsTrafficRule_PUT
      parameters:
      parameters:
@@ -317,6 +318,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appDnsRules
      - appDnsRules
      summary: 'Get DNS rules'
      description: This method retrieves information about all the DNS rules associated with a MEC application instance.
      description: This method retrieves information about all the DNS rules associated with a MEC application instance.
      operationId: ApplicationsDnsRules_GET
      operationId: ApplicationsDnsRules_GET
      parameters:
      parameters:
@@ -404,6 +406,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appDnsRules
      - appDnsRules
      summary: 'Get DNS rule'
      description: This method retrieves information about a DNS rule associated with a MEC application instance.
      description: This method retrieves information about a DNS rule associated with a MEC application instance.
      operationId: ApplicationsDnsRule_GET
      operationId: ApplicationsDnsRule_GET
      parameters:
      parameters:
@@ -473,6 +476,7 @@ paths:
    put:
    put:
      tags:
      tags:
      - appDnsRules
      - appDnsRules
      summary: 'Update DNS rule'
      description: This method activates, de-activates or updates a traffic rule.
      description: This method activates, de-activates or updates a traffic rule.
      operationId: ApplicationsDnsRule_PUT
      operationId: ApplicationsDnsRule_PUT
      parameters:
      parameters:
@@ -563,6 +567,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appSubscriptions
      - appSubscriptions
      summary: 'Get subscriptions'
      description: The GET method may be used to request information about all subscriptions for this requestor. Upon success, the response contains entity body with all the subscriptions for the requestor.
      description: The GET method may be used to request information about all subscriptions for this requestor. Upon success, the response contains entity body with all the subscriptions for the requestor.
      operationId: ApplicationsSubscriptions_GET
      operationId: ApplicationsSubscriptions_GET
      parameters:
      parameters:
@@ -616,6 +621,7 @@ paths:
    post:
    post:
      tags:
      tags:
      - appSubscriptions
      - appSubscriptions
      summary: 'Create subscription'
      description: The POST method may be used to create a new subscription. One example use case is to create a new subscription to the MEC service availability notifications. Upon success, the response contains entity body describing the created subscription.
      description: The POST method may be used to create a new subscription. One example use case is to create a new subscription to the MEC service availability notifications. Upon success, the response contains entity body describing the created subscription.
      operationId: ApplicationsSubscriptions_POST
      operationId: ApplicationsSubscriptions_POST
      parameters:
      parameters:
@@ -692,6 +698,7 @@ paths:
              operationId: AppTerminationNotification_POST
              operationId: AppTerminationNotification_POST
              tags:
              tags:
              - callbacks
              - callbacks
              summary: 'Create callback'
              requestBody:
              requestBody:
                $ref: '#/components/requestBodies/AppTerminationNotification'      
                $ref: '#/components/requestBodies/AppTerminationNotification'      
              responses:
              responses:
@@ -702,7 +709,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appSubscriptions
      - appSubscriptions

      summary: 'Get subscription'
      description: The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.
      description: The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.
      operationId: ApplicationsSubscription_GET
      operationId: ApplicationsSubscription_GET
      parameters:
      parameters:
@@ -763,7 +770,7 @@ paths:
    delete:
    delete:
      tags:
      tags:
      - appSubscriptions
      - appSubscriptions

      summary: 'delete subscription'
      description: This method deletes a mecAppSuptApiSubscription. This method is typically used in "Unsubscribing from service availability event notifications" procedure.
      description: This method deletes a mecAppSuptApiSubscription. This method is typically used in "Unsubscribing from service availability event notifications" procedure.
      operationId: ApplicationsSubscription_DELETE
      operationId: ApplicationsSubscription_DELETE
      parameters:
      parameters:
@@ -811,7 +818,7 @@ paths:
    post:
    post:
      tags:
      tags:
      - appConfirmTermination
      - appConfirmTermination

      summary: 'Confirm termination'
      description: This method is used to confirm the application level termination  of an application instance.
      description: This method is used to confirm the application level termination  of an application instance.
      operationId: ApplicationsConfirmTermination_POST
      operationId: ApplicationsConfirmTermination_POST
      parameters:
      parameters:
@@ -895,7 +902,7 @@ paths:
    post:
    post:
      tags:
      tags:
      - appConfirmReady
      - appConfirmReady

      summary: 'Confirm ready'
      description: 'This method may be used by the MEC application instance to notify the MEC platform that it is up and running. '
      description: 'This method may be used by the MEC application instance to notify the MEC platform that it is up and running. '
      operationId: ApplicationsConfirmReady_POST
      operationId: ApplicationsConfirmReady_POST
      parameters:
      parameters:
@@ -979,7 +986,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - timing
      - timing

      summary: 'Retrieve timing capabilities'
      description: This method retrieves the information of the platform's timing capabilities which corresponds to the timing capabilities query
      description: This method retrieves the information of the platform's timing capabilities which corresponds to the timing capabilities query
      operationId: TimingCaps_GET
      operationId: TimingCaps_GET
      parameters: []
      parameters: []
@@ -1028,7 +1035,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - timing
      - timing

      summary: 'Retrieve current time'
      description: This method retrieves the information of the platform's current time which corresponds to the get platform time procedure
      description: This method retrieves the information of the platform's current time which corresponds to the get platform time procedure
      operationId: TimingCurrentTime_GET
      operationId: TimingCurrentTime_GET
      parameters: []
      parameters: []
+156 −71

File changed.

Preview size limit exceeded, changes collapsed.

+15 −7
Original line number Original line Diff line number Diff line
@@ -30,7 +30,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appSubscriptions
      - appSubscriptions

      summary: "Get subscriptions"
      description: The GET method may be used to request information about all subscriptions for this requestor. Upon success, the response contains entity body with all the subscriptions for the requestor.
      description: The GET method may be used to request information about all subscriptions for this requestor. Upon success, the response contains entity body with all the subscriptions for the requestor.
      operationId: ApplicationsSubscriptions_GET
      operationId: ApplicationsSubscriptions_GET
      parameters:
      parameters:
@@ -84,7 +84,7 @@ paths:
    post:
    post:
      tags:
      tags:
      - appSubscriptions
      - appSubscriptions

      summary: "Create subscription"
      description: The POST method may be used to create a new subscription. One example use case is to create a new subscription to the MEC service availability notifications. Upon success, the response contains entity body describing the created subscription.
      description: The POST method may be used to create a new subscription. One example use case is to create a new subscription to the MEC service availability notifications. Upon success, the response contains entity body describing the created subscription.
      operationId: ApplicationsSubscriptions_POST
      operationId: ApplicationsSubscriptions_POST
      parameters:
      parameters:
@@ -168,6 +168,7 @@ paths:
               applications that are subscribed to the corresponding 
               applications that are subscribed to the corresponding 
               service availability notifications about the service availability changes.'
               service availability notifications about the service availability changes.'
              operationId: ServiceAvailabilityNotification_POST
              operationId: ServiceAvailabilityNotification_POST
              summary: "Create callback"
              tags:
              tags:
              - callbacks
              - callbacks
              requestBody:
              requestBody:
@@ -180,7 +181,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appSubscriptions
      - appSubscriptions

      summary: "Get subscription"
      description: The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.
      description: The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.
      operationId: ApplicationsSubscription_GET
      operationId: ApplicationsSubscription_GET
      parameters:
      parameters:
@@ -241,7 +242,7 @@ paths:
    delete:
    delete:
      tags:
      tags:
      - appSubscriptions
      - appSubscriptions

      summary: delete subscription
      description: This method deletes a mecSrvMgmtSubscription. This method is typically used in "Unsubscribing from service availability event notifications" procedure.
      description: This method deletes a mecSrvMgmtSubscription. This method is typically used in "Unsubscribing from service availability event notifications" procedure.
      operationId: ApplicationsSubscription_DELETE
      operationId: ApplicationsSubscription_DELETE
      parameters:
      parameters:
@@ -289,6 +290,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appServices
      - appServices
      summary: get services
      description: This method retrieves information about a list of mecService resources. This method is typically used in "service availability query" procedure
      description: This method retrieves information about a list of mecService resources. This method is typically used in "service availability query" procedure
      operationId: AppServices_GET
      operationId: AppServices_GET
      parameters:
      parameters:
@@ -460,6 +462,7 @@ paths:
    post:
    post:
      tags:
      tags:
      - appServices
      - appServices
      summary: create service
      description: This method is used to create a mecService resource. This method is typically used in "service availability update and new service registration" procedure
      description: This method is used to create a mecService resource. This method is typically used in "service availability update and new service registration" procedure
      operationId: AppServices_POST
      operationId: AppServices_POST
      parameters:
      parameters:
@@ -562,6 +565,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - appServices
      - appServices
      summary: get service
      description: This method retrieves information about a mecService resource. This method is typically used in "service availability query" procedure
      description: This method retrieves information about a mecService resource. This method is typically used in "service availability query" procedure
      operationId: AppServicesServiceId_GET
      operationId: AppServicesServiceId_GET
      parameters:
      parameters:
@@ -650,6 +654,7 @@ paths:
    put:
    put:
      tags:
      tags:
      - appServices
      - appServices
      summary: update service
      description: This method updates the information about a mecService resource
      description: This method updates the information about a mecService resource
      operationId: AppServicesServiceId_PUT
      operationId: AppServicesServiceId_PUT
      parameters:
      parameters:
@@ -757,6 +762,7 @@ paths:
    delete:
    delete:
      tags:
      tags:
      - appServices
      - appServices
      summary: delete service
      description: 'This method deletes a mecService resource. This method is typically used in the service deregistration procedure. '
      description: 'This method deletes a mecService resource. This method is typically used in the service deregistration procedure. '
      operationId: AppServicesServiceId_DELETE
      operationId: AppServicesServiceId_DELETE
      parameters:
      parameters:
@@ -804,7 +810,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - services
      - services

      summary: get services
      description: This method retrieves information about a list of mecService resources. This method is typically used in "service availability query" procedure
      description: This method retrieves information about a list of mecService resources. This method is typically used in "service availability query" procedure
      operationId: Services_GET
      operationId: Services_GET
      parameters:
      parameters:
@@ -971,7 +977,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - services
      - services

      summary: get service
      description: This method retrieves information about a mecService resource. This method is typically used in "service availability query" procedure
      description: This method retrieves information about a mecService resource. This method is typically used in "service availability query" procedure
      operationId: ServicesServiceId_GET
      operationId: ServicesServiceId_GET
      parameters:
      parameters:
@@ -1055,7 +1061,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - transports
      - transports

      summary: Get transports
      description: This method retrieves information about a list of available transports. This method is typically used by a service-producing application to discover transports provided by the MEC platform in the "transport information query" procedure
      description: This method retrieves information about a list of available transports. This method is typically used by a service-producing application to discover transports provided by the MEC platform in the "transport information query" procedure
      operationId: Transports_GET
      operationId: Transports_GET
      parameters: []
      parameters: []
@@ -1109,6 +1115,7 @@ paths:
    get:
    get:
      tags:
      tags:
      - individualMECservice
      - individualMECservice
      summary: get mecServiceLiveness
      description: This method retrieves information about an "Individual mecServiceLiveness" resource
      description: This method retrieves information about an "Individual mecServiceLiveness" resource
      operationId: get_individual_MEC_service
      operationId: get_individual_MEC_service
      responses:
      responses:
@@ -1140,6 +1147,7 @@ paths:
    patch:
    patch:
      tags:
      tags:
      - individualMECservice
      - individualMECservice
      summary: Update mecServiceLiveness
      description: This method updates a resource on top of the existing resource state with partial changes described by the client.
      description: This method updates a resource on top of the existing resource state with partial changes described by the client.
      operationId: patch_individual_MEC_service
      operationId: patch_individual_MEC_service
      requestBody:
      requestBody:
Loading