Commit ccd4b4f1 authored by Yann Garcia's avatar Yann Garcia
Browse files

Update Swagger codegen version

parent 17aa1aca
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -52,6 +52,8 @@ However, the OpenAPI Specifications files available on ETSI Forge use version 3.

- Use this [VS code extension](https://marketplace.visualstudio.com/items?itemName=42Crunch.vscode-openapi) to see the errors in the downgraded YAML (v3.0)​

- Update servers.url by adding /sandbox at the beginning of the URI  (e.g. https://localhost/vis/v2 becomes https://localhost/sandboxname/vis/v2)

- Manually fix the errors​
  - mostly related to `examples` <--> `example` interchange​ <br>**NOTE**: the `example` or `examples` fields may be removed altogether as these fields do not play any role in generation of Go data models or HTTP handler functions.

@@ -64,9 +66,9 @@ Also, add `unsupported` tag for each endpoint in the OAS file which will not be
To generate the server stubs, follow these steps:

1. Install Java on your system
2. Download the Swagger Codegen v3.0.22 _jar_ file as this version is recommended by AdvantEDGE:
2. Download the Swagger Codegen v3.0.29 _jar_ file as this version is recommended by AdvantEDGE:
   ```sh
   $ wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.22/swagger-codegen-cli-3.0.22.jar -O swagger-codegen-cli.jar
   $ wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.29/swagger-codegen-cli-3.0.29.jar -O swagger-codegen-cli.jar
   ```
3. Run the following command to generate server stubs in _Go_:
   ```sh
@@ -89,9 +91,9 @@ The OpenAPI Specifications files available on ETSI Forge use version 3.1 of OAS.
To generate the server stubs, follow these steps:

1. Install Java on your system
2. Download the Swagger Codegen v3.0.22 _jar_ file as this version is recommended by AdvantEDGE:
2. Download the Swagger Codegen v3.0.29 _jar_ file as this version is recommended by AdvantEDGE:
   ```sh
   $ wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.22/swagger-codegen-cli-3.0.22.jar -O swagger-codegen-cli.jar
   $ wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.29/swagger-codegen-cli-3.0.29.jar -O swagger-codegen-cli.jar
   ```
3. Run the following command to generate server stubs in _Go_:
   ```sh
@@ -745,7 +747,7 @@ The new feature (MEC service) will run inside a pod as a micro-service in Advant
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:9.6-slim
FROM debian:11.7-slim
COPY ./meep-vis /meep-<mec-identifier>
COPY ./api /api
COPY ./user-api /user-api