Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 2c5051a

Browse files
committed
fix failing test
1 parent 5e8a739 commit 2c5051a

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

example/src/petstore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ info:
1515
x-github: https://github.com/bee-travels
1616

1717
tags:
18-
- name: Pet
18+
- name: pet
1919
description: Everything about your Pets
2020
externalDocs:
2121
description: Find out more

example/src/routes/pet.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const router = Router();
1818

1919
/**
2020
* POST /pet
21-
* @tag Pet
21+
* @tag pet
2222
* @summary Add a new pet to the store
2323
* @operationId addPet
2424
* @bodyDescription Pet object that needs to be added to the store
@@ -35,7 +35,7 @@ router.post('/', async (req, res, next) => {
3535

3636
/**
3737
* PUT /pet
38-
* @tag Pet
38+
* @tag pet
3939
* @summary Update an existing pet
4040
* @operationId updatePet
4141
* @bodyDescription Pet object that needs to be added to the store
@@ -54,7 +54,7 @@ router.put('/', async (req, res, next) => {
5454

5555
/**
5656
* GET /pet/findByStatus
57-
* @tag Pet
57+
* @tag pet
5858
* @summary Finds Pets by status
5959
* @description Multiple status values can be provided with comma separated strings
6060
* @operationId findPetsByStatus
@@ -73,7 +73,7 @@ router.get('/findByStatus', async (req, res, next) => {
7373
/**
7474
* GET /pet/findByTags
7575
* @deprecated
76-
* @tag Pet
76+
* @tag pet
7777
* @summary Finds Pets by tags
7878
* @description 'Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.'
7979
* @operationId findPetsByTags
@@ -90,7 +90,7 @@ router.get('/findByTags', async (req, res, next) => {
9090

9191
/**
9292
* GET /pet/{petId}
93-
* @tag Pet
93+
* @tag pet
9494
* @summary Find pet by ID
9595
* @description Returns a single pet
9696
* @operationId getPetById
@@ -115,7 +115,7 @@ router.get('/:petId', async (req, res, next) => {
115115

116116
/**
117117
* POST /pet/{petId}
118-
* @tag Pet
118+
* @tag pet
119119
* @summary Updates a pet in the store with form data
120120
* @operationId updatePetWithForm
121121
* @pathParam {int64} petId - ID of pet that needs to be updated
@@ -130,7 +130,7 @@ router.post('/:petId', async (req, res, next) => {
130130

131131
/**
132132
* DELETE /pet/{petId}
133-
* @tag Pet
133+
* @tag pet
134134
* @summary Deletes a pet
135135
* @operationId deletePet
136136
* @headerParam {string} [apikey]
@@ -146,7 +146,7 @@ router.delete('/:petId', async (req, res, next) => {
146146

147147
/**
148148
* POST /pet/{petId}/uploadImage
149-
* @tag Pet
149+
* @tag pet
150150
* @summary uploads an image
151151
* @operationId uploadFile
152152
* @pathParam {int64} petId - ID of pet to update

src/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ describe('index', () => {
1818
info: {
1919
title: 'Swagger Petstore',
2020
version: '1.0.5',
21+
'x-github': 'https://github.com/bee-travels',
2122
description:
2223
'This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.\n',
2324
termsOfService: 'http://swagger.io/terms/',

0 commit comments

Comments
 (0)