[go: up one dir, main page]

Skip to content

Upgrade swagger-client dependency to the latest

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

We're currently running an outdated version of swagger-client, we need to update it to the latest version.

⚠️ Note, at the time of opening this issue, the latest version did not run without a polyfill when using Vite.

How to set up and validate locally

  1. Create an openapi.yml file containing an external reference:
openapi: 3.0.0

info:
  title: Simple API
  version: 1.0.0

paths:
  /greeting:
    $ref: './greeting.yaml'
  1. Create the external reference (e.g. ./greeting.yaml):
get:
  summary: Get a friendly greeting
  responses:
    '200':
      description: A successful response
      content:
        text/plain:
          example: Hello, World!
  1. Open the openapi.yml file created in Step 1
  2. The contents from ./greeting.yaml should be rendered
Edited by 🤖 GitLab Bot 🤖