From 538dd02e9b830b2af17931f7114b3515472f0041 Mon Sep 17 00:00:00 2001 From: Damian Jankowski Date: Fri, 1 Aug 2025 14:26:51 +0200 Subject: [PATCH] Change status to required param for findbystatus and findbytag endpoints, change jetty mvn plugin port from 8002 to 8080 to align with doc and other petstores --- pom.xml | 2 +- src/main/webapp/design-first/petstore.yaml | 28 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 45c775c9..fec10c82 100644 --- a/pom.xml +++ b/pom.xml @@ -185,7 +185,7 @@ 8079 stopit - 8002 + 8080 60000 diff --git a/src/main/webapp/design-first/petstore.yaml b/src/main/webapp/design-first/petstore.yaml index 455fd502..4ef3885b 100644 --- a/src/main/webapp/design-first/petstore.yaml +++ b/src/main/webapp/design-first/petstore.yaml @@ -124,7 +124,7 @@ paths: '405': description: Invalid input default: - description: Unexpected error + description: Unexpected error security: - petstore_auth: - write:pets @@ -140,7 +140,7 @@ paths: - name: status in: query description: Status values that need to be considered for filter - required: false + required: true explode: true schema: type: string @@ -171,7 +171,7 @@ paths: '400': description: Invalid status value default: - description: Unexpected error + description: Unexpected error security: - petstore_auth: - write:pets @@ -192,7 +192,7 @@ paths: - name: tags in: query description: Tags to filter by - required: false + required: true explode: true schema: type: array @@ -215,7 +215,7 @@ paths: '400': description: Invalid tag value default: - description: Unexpected error + description: Unexpected error security: - petstore_auth: - write:pets @@ -259,7 +259,7 @@ paths: '404': description: Pet not found default: - description: Unexpected error + description: Unexpected error security: - api_key: [] - petstore_auth: @@ -305,11 +305,11 @@ components: id: type: integer format: int64 - examples: + examples: - 1 name: type: string - examples: + examples: - Dogs xml: name: Category @@ -335,11 +335,11 @@ components: id: type: integer format: int64 - examples: + examples: - 10 name: type: string - examples: + examples: - doggie category: $ref: '#/components/schemas/Category' @@ -368,7 +368,7 @@ components: availableInstances: type: integer format: int32 - examples: + examples: - 7 exclusiveMaximum: 10 exclusiveMinimum: 1 @@ -388,7 +388,7 @@ components: id: type: integer format: int64 - examples: + examples: - 10 $anchor: pet_details_id tag: @@ -417,7 +417,7 @@ components: type: string required: - code - - message + - message requestBodies: Pet: description: Pet object that needs to be added to the store @@ -457,4 +457,4 @@ webhooks: '200': description: >- Return a 200 status to indicate that the data was received - successfully \ No newline at end of file + successfully