diff --git a/.github/workflows/samples-java-client-jdk17.yaml b/.github/workflows/samples-java-client-jdk17.yaml
index bd9b15b9ef17..5f1dadce43f0 100644
--- a/.github/workflows/samples-java-client-jdk17.yaml
+++ b/.github/workflows/samples-java-client-jdk17.yaml
@@ -22,6 +22,7 @@ on:
- samples/client/petstore/java/jersey3-oneOf/**
- samples/client/petstore/java/jersey3-jackson3/**
- samples/client/petstore/java/microprofile-oneof-sealed/**
+ - samples/client/petstore/java/rest-assured-jackson3/**
pull_request:
paths:
- samples/client/petstore/java/resttemplate-jakarta/**
@@ -43,6 +44,7 @@ on:
- samples/client/petstore/java/jersey3-oneOf/**
- samples/client/petstore/java/jersey3-jackson3/**
- samples/client/petstore/java/microprofile-oneof-sealed/**
+ - samples/client/petstore/java/rest-assured-jackson3/**
jobs:
build:
name: Build Java Client JDK17
@@ -79,6 +81,7 @@ jobs:
- samples/client/petstore/java/jersey3-oneOf
- samples/client/petstore/java/jersey3-jackson3
- samples/client/petstore/java/microprofile-oneof-sealed
+ - samples/client/petstore/java/rest-assured-jackson3
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
diff --git a/bin/configs/java-rest-assured-jackson3.yaml b/bin/configs/java-rest-assured-jackson3.yaml
index fbb70d9fca7d..3861eba77930 100644
--- a/bin/configs/java-rest-assured-jackson3.yaml
+++ b/bin/configs/java-rest-assured-jackson3.yaml
@@ -1,7 +1,7 @@
generatorName: java
outputDir: ./samples/client/petstore/java/rest-assured-jackson3
library: rest-assured
-inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-addpet-only.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
serializationLibrary: jackson
diff --git a/samples/client/petstore/java/rest-assured-jackson3/.openapi-generator/FILES b/samples/client/petstore/java/rest-assured-jackson3/.openapi-generator/FILES
index 64cd57d8760c..24517b719ef3 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/.openapi-generator/FILES
+++ b/samples/client/petstore/java/rest-assured-jackson3/.openapi-generator/FILES
@@ -5,57 +5,10 @@ README.md
api/openapi.yaml
build.gradle
build.sbt
-docs/AdditionalPropertiesAnyType.md
-docs/AdditionalPropertiesArray.md
-docs/AdditionalPropertiesBoolean.md
-docs/AdditionalPropertiesClass.md
-docs/AdditionalPropertiesInteger.md
-docs/AdditionalPropertiesNumber.md
-docs/AdditionalPropertiesObject.md
-docs/AdditionalPropertiesString.md
-docs/Animal.md
-docs/AnotherFakeApi.md
-docs/ArrayOfArrayOfNumberOnly.md
-docs/ArrayOfNumberOnly.md
-docs/ArrayTest.md
-docs/BigCat.md
-docs/Capitalization.md
-docs/Cat.md
docs/Category.md
-docs/ClassModel.md
-docs/Client.md
-docs/Dog.md
-docs/EnumArrays.md
-docs/EnumClass.md
-docs/EnumTest.md
-docs/FakeApi.md
-docs/FakeClassnameTags123Api.md
-docs/FileSchemaTestClass.md
-docs/FormatTest.md
-docs/HasOnlyReadOnly.md
-docs/MapTest.md
-docs/MixedPropertiesAndAdditionalPropertiesClass.md
-docs/Model200Response.md
-docs/ModelApiResponse.md
-docs/ModelFile.md
-docs/ModelList.md
-docs/ModelReturn.md
-docs/Name.md
-docs/NumberOnly.md
-docs/Order.md
-docs/OuterComposite.md
-docs/OuterEnum.md
docs/Pet.md
docs/PetApi.md
-docs/ReadOnlyFirst.md
-docs/SpecialModelName.md
-docs/StoreApi.md
docs/Tag.md
-docs/TypeHolderDefault.md
-docs/TypeHolderExample.md
-docs/User.md
-docs/UserApi.md
-docs/XmlItem.md
git_push.sh
gradle.properties
gradle/wrapper/gradle-wrapper.jar
@@ -72,55 +25,8 @@ src/main/java/org/openapitools/client/RFC3339DateFormat.java
src/main/java/org/openapitools/client/ResponseSpecBuilders.java
src/main/java/org/openapitools/client/ServerConfiguration.java
src/main/java/org/openapitools/client/ServerVariable.java
-src/main/java/org/openapitools/client/api/AnotherFakeApi.java
-src/main/java/org/openapitools/client/api/FakeApi.java
-src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
src/main/java/org/openapitools/client/api/Oper.java
src/main/java/org/openapitools/client/api/PetApi.java
-src/main/java/org/openapitools/client/api/StoreApi.java
-src/main/java/org/openapitools/client/api/UserApi.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java
-src/main/java/org/openapitools/client/model/Animal.java
-src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
-src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
-src/main/java/org/openapitools/client/model/ArrayTest.java
-src/main/java/org/openapitools/client/model/BigCat.java
-src/main/java/org/openapitools/client/model/Capitalization.java
-src/main/java/org/openapitools/client/model/Cat.java
src/main/java/org/openapitools/client/model/Category.java
-src/main/java/org/openapitools/client/model/ClassModel.java
-src/main/java/org/openapitools/client/model/Client.java
-src/main/java/org/openapitools/client/model/Dog.java
-src/main/java/org/openapitools/client/model/EnumArrays.java
-src/main/java/org/openapitools/client/model/EnumClass.java
-src/main/java/org/openapitools/client/model/EnumTest.java
-src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
-src/main/java/org/openapitools/client/model/FormatTest.java
-src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
-src/main/java/org/openapitools/client/model/MapTest.java
-src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
-src/main/java/org/openapitools/client/model/Model200Response.java
-src/main/java/org/openapitools/client/model/ModelApiResponse.java
-src/main/java/org/openapitools/client/model/ModelFile.java
-src/main/java/org/openapitools/client/model/ModelList.java
-src/main/java/org/openapitools/client/model/ModelReturn.java
-src/main/java/org/openapitools/client/model/Name.java
-src/main/java/org/openapitools/client/model/NumberOnly.java
-src/main/java/org/openapitools/client/model/Order.java
-src/main/java/org/openapitools/client/model/OuterComposite.java
-src/main/java/org/openapitools/client/model/OuterEnum.java
src/main/java/org/openapitools/client/model/Pet.java
-src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
-src/main/java/org/openapitools/client/model/SpecialModelName.java
src/main/java/org/openapitools/client/model/Tag.java
-src/main/java/org/openapitools/client/model/TypeHolderDefault.java
-src/main/java/org/openapitools/client/model/TypeHolderExample.java
-src/main/java/org/openapitools/client/model/User.java
-src/main/java/org/openapitools/client/model/XmlItem.java
diff --git a/samples/client/petstore/java/rest-assured-jackson3/api/openapi.yaml b/samples/client/petstore/java/rest-assured-jackson3/api/openapi.yaml
index 426145d1685a..ca8277d711bc 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/api/openapi.yaml
+++ b/samples/client/petstore/java/rest-assured-jackson3/api/openapi.yaml
@@ -1,226 +1,27 @@
-openapi: 3.0.1
+openapi: 3.0.0
info:
- description: "This spec is mainly for testing Petstore server and contains fake\
- \ endpoints, models. Please do not use this for any other purpose. Special characters:\
- \ \" \\"
+ description: "This is a sample server Petstore server. For this sample, you can\
+ \ use the api key `special-key` to test the authorization filters."
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
title: OpenAPI Petstore
version: 1.0.0
+externalDocs:
+ description: Find out more about Swagger
+ url: http://swagger.io
servers:
-- url: http://petstore.swagger.io:80/v2
+- url: http://petstore.swagger.io/v2
tags:
- description: Everything about your Pets
name: pet
-- description: Access to Petstore orders
- name: store
-- description: Operations about user
- name: user
paths:
/pet:
post:
+ description: ""
operationId: addPet
requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Pet"
- application/xml:
- schema:
- $ref: "#/components/schemas/Pet"
- description: Pet object that needs to be added to the store
- required: true
- responses:
- "200":
- content: {}
- description: successful operation
- "405":
- content: {}
- description: Invalid input
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Add a new pet to the store
- tags:
- - pet
- x-codegen-request-body-name: body
- x-content-type: application/json
- x-accepts:
- - application/json
- put:
- operationId: updatePet
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Pet"
- application/xml:
- schema:
- $ref: "#/components/schemas/Pet"
- description: Pet object that needs to be added to the store
- required: true
- responses:
- "200":
- content: {}
- description: successful operation
- "400":
- content: {}
- description: Invalid ID supplied
- "404":
- content: {}
- description: Pet not found
- "405":
- content: {}
- description: Validation exception
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Update an existing pet
- tags:
- - pet
- x-codegen-request-body-name: body
- x-content-type: application/json
- x-accepts:
- - application/json
- /pet/findByStatus:
- get:
- description: Multiple status values can be provided with comma separated strings
- operationId: findPetsByStatus
- parameters:
- - description: Status values that need to be considered for filter
- explode: false
- in: query
- name: status
- required: true
- schema:
- items:
- default: available
- enum:
- - available
- - pending
- - sold
- type: string
- type: array
- style: form
- responses:
- "200":
- content:
- application/xml:
- schema:
- items:
- $ref: "#/components/schemas/Pet"
- type: array
- application/json:
- schema:
- items:
- $ref: "#/components/schemas/Pet"
- type: array
- description: successful operation
- "400":
- content: {}
- description: Invalid status value
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Finds Pets by status
- tags:
- - pet
- x-accepts:
- - application/json
- - application/xml
- /pet/findByTags:
- get:
- deprecated: true
- description: "Multiple tags can be provided with comma separated strings. Use\
- \ tag1, tag2, tag3 for testing."
- operationId: findPetsByTags
- parameters:
- - description: Tags to filter by
- explode: false
- in: query
- name: tags
- required: true
- schema:
- items:
- type: string
- type: array
- uniqueItems: true
- style: form
- responses:
- "200":
- content:
- application/xml:
- schema:
- items:
- $ref: "#/components/schemas/Pet"
- type: array
- uniqueItems: true
- application/json:
- schema:
- items:
- $ref: "#/components/schemas/Pet"
- type: array
- uniqueItems: true
- description: successful operation
- "400":
- content: {}
- description: Invalid tag value
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Finds Pets by tags
- tags:
- - pet
- x-accepts:
- - application/json
- - application/xml
- /pet/{petId}:
- delete:
- operationId: deletePet
- parameters:
- - in: header
- name: api_key
- schema:
- type: string
- - description: Pet id to delete
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- responses:
- "200":
- content: {}
- description: successful operation
- "400":
- content: {}
- description: Invalid pet value
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Deletes a pet
- tags:
- - pet
- x-accepts:
- - application/json
- get:
- description: Returns a single pet
- operationId: getPetById
- parameters:
- - description: ID of pet to return
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
+ $ref: "#/components/requestBodies/Pet"
responses:
"200":
content:
@@ -231,2006 +32,118 @@ paths:
schema:
$ref: "#/components/schemas/Pet"
description: successful operation
- "400":
- content: {}
- description: Invalid ID supplied
- "404":
- content: {}
- description: Pet not found
- security:
- - api_key: []
- summary: Find pet by ID
- tags:
- - pet
- x-accepts:
- - application/json
- - application/xml
- post:
- operationId: updatePetWithForm
- parameters:
- - description: ID of pet that needs to be updated
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: "#/components/schemas/updatePetWithForm_request"
- responses:
"405":
- content: {}
description: Invalid input
security:
- petstore_auth:
- write:pets
- read:pets
- summary: Updates a pet in the store with form data
- tags:
- - pet
- x-content-type: application/x-www-form-urlencoded
- x-accepts:
- - application/json
- /pet/{petId}/uploadImage:
- post:
- operationId: uploadFile
- parameters:
- - description: ID of pet to update
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- requestBody:
- content:
- multipart/form-data:
- schema:
- $ref: "#/components/schemas/uploadFile_request"
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ApiResponse"
- description: successful operation
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: uploads an image
+ summary: Add a new pet to the store
tags:
- pet
- x-content-type: multipart/form-data
- x-accepts:
- - application/json
- /store/inventory:
- get:
- description: Returns a map of status codes to quantities
- operationId: getInventory
- responses:
- "200":
- content:
- application/json:
- schema:
- additionalProperties:
- format: int32
- type: integer
- type: object
- description: successful operation
- security:
- - api_key: []
- summary: Returns pet inventories by status
- tags:
- - store
- x-accepts:
- - application/json
- /store/order:
- post:
- operationId: placeOrder
- requestBody:
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/Order"
- description: order placed for purchasing the pet
- required: true
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: "#/components/schemas/Order"
- application/json:
- schema:
- $ref: "#/components/schemas/Order"
- description: successful operation
- "400":
- content: {}
- description: Invalid Order
- summary: Place an order for a pet
- tags:
- - store
- x-codegen-request-body-name: body
- x-content-type: '*/*'
- x-accepts:
- - application/json
- - application/xml
- /store/order/{order_id}:
- delete:
- description: For valid response try integer IDs with value < 1000. Anything
- above 1000 or nonintegers will generate API errors
- operationId: deleteOrder
- parameters:
- - description: ID of the order that needs to be deleted
- in: path
- name: order_id
- required: true
- schema:
- type: string
- responses:
- "400":
- content: {}
- description: Invalid ID supplied
- "404":
- content: {}
- description: Order not found
- summary: Delete purchase order by ID
- tags:
- - store
- x-accepts:
- - application/json
- get:
- description: For valid response try integer IDs with value <= 5 or > 10. Other
- values will generate exceptions
- operationId: getOrderById
- parameters:
- - description: ID of pet that needs to be fetched
- in: path
- name: order_id
- required: true
- schema:
- format: int64
- maximum: 5
- minimum: 1
- type: integer
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: "#/components/schemas/Order"
- application/json:
- schema:
- $ref: "#/components/schemas/Order"
- description: successful operation
- "400":
- content: {}
- description: Invalid ID supplied
- "404":
- content: {}
- description: Order not found
- summary: Find purchase order by ID
- tags:
- - store
- x-accepts:
- - application/json
- - application/xml
- /user:
- post:
- description: This can only be done by the logged in user.
- operationId: createUser
- requestBody:
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/User"
- description: Created user object
- required: true
- responses:
- default:
- content: {}
- description: successful operation
- summary: Create user
- tags:
- - user
- x-codegen-request-body-name: body
- x-content-type: '*/*'
- x-accepts:
- - application/json
- /user/createWithArray:
- post:
- operationId: createUsersWithArrayInput
- requestBody:
- content:
- '*/*':
- schema:
- items:
- $ref: "#/components/schemas/User"
- type: array
- description: List of user object
- required: true
- responses:
- default:
- content: {}
- description: successful operation
- summary: Creates list of users with given input array
- tags:
- - user
- x-codegen-request-body-name: body
- x-content-type: '*/*'
- x-accepts:
- - application/json
- /user/createWithList:
- post:
- operationId: createUsersWithListInput
- requestBody:
- content:
- '*/*':
- schema:
- items:
- $ref: "#/components/schemas/User"
- type: array
- description: List of user object
- required: true
- responses:
- default:
- content: {}
- description: successful operation
- summary: Creates list of users with given input array
- tags:
- - user
- x-codegen-request-body-name: body
- x-content-type: '*/*'
- x-accepts:
- - application/json
- /user/login:
- get:
- operationId: loginUser
- parameters:
- - description: The user name for login
- in: query
- name: username
- required: true
- schema:
- type: string
- - description: The password for login in clear text
- in: query
- name: password
- required: true
- schema:
- type: string
- responses:
- "200":
- content:
- application/xml:
- schema:
- type: string
- application/json:
- schema:
- type: string
- description: successful operation
- headers:
- X-Rate-Limit:
- description: calls per hour allowed by the user
- schema:
- format: int32
- type: integer
- X-Expires-After:
- description: date in UTC when token expires
- schema:
- format: date-time
- type: string
- "400":
- content: {}
- description: Invalid username/password supplied
- summary: Logs user into the system
- tags:
- - user
- x-accepts:
- - application/json
- - application/xml
- /user/logout:
- get:
- operationId: logoutUser
- responses:
- default:
- content: {}
- description: successful operation
- summary: Logs out current logged in user session
- tags:
- - user
- x-accepts:
- - application/json
- /user/{username}:
- delete:
- description: This can only be done by the logged in user.
- operationId: deleteUser
- parameters:
- - description: The name that needs to be deleted
- in: path
- name: username
- required: true
- schema:
- type: string
- responses:
- "400":
- content: {}
- description: Invalid username supplied
- "404":
- content: {}
- description: User not found
- summary: Delete user
- tags:
- - user
- x-accepts:
- - application/json
- get:
- operationId: getUserByName
- parameters:
- - description: The name that needs to be fetched. Use user1 for testing.
- in: path
- name: username
- required: true
- schema:
- type: string
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: "#/components/schemas/User"
- application/json:
- schema:
- $ref: "#/components/schemas/User"
- description: successful operation
- "400":
- content: {}
- description: Invalid username supplied
- "404":
- content: {}
- description: User not found
- summary: Get user by user name
- tags:
- - user
- x-accepts:
- - application/json
- - application/xml
- put:
- description: This can only be done by the logged in user.
- operationId: updateUser
- parameters:
- - description: name that need to be deleted
- in: path
- name: username
- required: true
- schema:
- type: string
- requestBody:
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/User"
- description: Updated user object
- required: true
- responses:
- "400":
- content: {}
- description: Invalid user supplied
- "404":
- content: {}
- description: User not found
- summary: Updated user
- tags:
- - user
- x-codegen-request-body-name: body
- x-content-type: '*/*'
- x-accepts:
- - application/json
- /fake_classname_test:
- patch:
- description: To test class name in snake case
- operationId: testClassname
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: client model
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: successful operation
- security:
- - api_key_query: []
- summary: To test class name in snake case
- tags:
- - fake_classname_tags 123#$%^
- x-codegen-request-body-name: body
x-content-type: application/json
x-accepts:
- application/json
- /fake:
- delete:
- description: Fake endpoint to test group parameters (optional)
- operationId: testGroupParameters
- parameters:
- - description: Required String in group parameters
- in: query
- name: required_string_group
- required: true
- schema:
- type: integer
- - description: Required Boolean in group parameters
- in: header
- name: required_boolean_group
- required: true
- schema:
- type: boolean
- - description: Required Integer in group parameters
- in: query
- name: required_int64_group
- required: true
- schema:
- format: int64
- type: integer
- - description: String in group parameters
- in: query
- name: string_group
- schema:
- type: integer
- - description: Boolean in group parameters
- in: header
- name: boolean_group
- schema:
- type: boolean
- - description: Integer in group parameters
- in: query
- name: int64_group
- schema:
- format: int64
- type: integer
- responses:
- "400":
- content: {}
- description: Something wrong
- summary: Fake endpoint to test group parameters (optional)
- tags:
- - fake
- x-group-parameters: true
- x-accepts:
- - application/json
- get:
- description: To test enum parameters
- operationId: testEnumParameters
- parameters:
- - description: Header parameter enum test (string array)
- explode: false
- in: header
- name: enum_header_string_array
- schema:
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- style: simple
- - description: Header parameter enum test (string)
- in: header
- name: enum_header_string
- schema:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- - description: Query parameter enum test (string array)
- explode: false
- in: query
- name: enum_query_string_array
- schema:
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- style: form
- - description: Query parameter enum test (string)
- in: query
- name: enum_query_string
- schema:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- - description: Query parameter enum test (double)
- in: query
- name: enum_query_integer
- schema:
- enum:
- - 1
- - -2
- format: int32
- type: integer
- - description: Query parameter enum test (double)
- in: query
- name: enum_query_double
- schema:
- enum:
- - 1.1
- - -1.2
- format: double
- type: number
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: "#/components/schemas/testEnumParameters_request"
- responses:
- "400":
- content: {}
- description: Invalid request
- "404":
- content: {}
- description: Not found
- summary: To test enum parameters
- tags:
- - fake
- x-content-type: application/x-www-form-urlencoded
- x-accepts:
- - application/json
- patch:
- description: To test "client" model
- operationId: testClientModel
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: client model
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: successful operation
- summary: To test "client" model
- tags:
- - fake
- x-codegen-request-body-name: body
- x-content-type: application/json
- x-accepts:
- - application/json
- post:
- description: |-
- Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
- operationId: testEndpointParameters
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: "#/components/schemas/testEndpointParameters_request"
- required: true
- responses:
- "400":
- content: {}
- description: Invalid username supplied
- "404":
- content: {}
- description: User not found
- security:
- - http_basic_test: []
- summary: |-
- Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
- tags:
- - fake
- x-content-type: application/x-www-form-urlencoded
- x-accepts:
- - application/json
- /fake/outer/number:
- post:
- description: Test serialization of outer number types
- operationId: fakeOuterNumberSerialize
- requestBody:
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterNumber"
- description: Input number as post body
- required: false
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterNumber"
- description: Output number
- tags:
- - fake
- x-codegen-request-body-name: body
- x-content-type: '*/*'
- x-accepts:
- - '*/*'
- /fake/outer/string:
- post:
- description: Test serialization of outer string types
- operationId: fakeOuterStringSerialize
- requestBody:
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterString"
- description: Input string as post body
- required: false
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterString"
- description: Output string
- tags:
- - fake
- x-codegen-request-body-name: body
- x-content-type: '*/*'
- x-accepts:
- - '*/*'
- /fake/outer/boolean:
- post:
- description: Test serialization of outer boolean types
- operationId: fakeOuterBooleanSerialize
- requestBody:
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterBoolean"
- description: Input boolean as post body
- required: false
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterBoolean"
- description: Output boolean
- tags:
- - fake
- x-codegen-request-body-name: body
- x-content-type: '*/*'
- x-accepts:
- - '*/*'
- /fake/outer/composite:
- post:
- description: Test serialization of object with outer number type
- operationId: fakeOuterCompositeSerialize
- requestBody:
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterComposite"
- description: Input composite as post body
- required: false
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: "#/components/schemas/OuterComposite"
- description: Output composite
- tags:
- - fake
- x-codegen-request-body-name: body
- x-content-type: '*/*'
- x-accepts:
- - '*/*'
- /fake/jsonFormData:
- get:
- operationId: testJsonFormData
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: "#/components/schemas/testJsonFormData_request"
- required: true
- responses:
- "200":
- content: {}
- description: successful operation
- summary: test json serialization of form data
- tags:
- - fake
- x-content-type: application/x-www-form-urlencoded
- x-accepts:
- - application/json
- /fake/inline-additionalProperties:
- post:
- operationId: testInlineAdditionalProperties
- requestBody:
- content:
- application/json:
- schema:
- additionalProperties:
- type: string
- type: object
- description: request body
- required: true
- responses:
- "200":
- content: {}
- description: successful operation
- summary: test inline additionalProperties
- tags:
- - fake
- x-codegen-request-body-name: param
- x-content-type: application/json
- x-accepts:
- - application/json
- /fake/body-with-query-params:
- put:
- operationId: testBodyWithQueryParams
- parameters:
- - in: query
- name: query
- required: true
- schema:
- type: string
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/User"
- required: true
- responses:
- "200":
- content: {}
- description: Success
- tags:
- - fake
- x-codegen-request-body-name: body
- x-content-type: application/json
- x-accepts:
- - application/json
- /fake/create_xml_item:
- post:
- description: this route creates an XmlItem
- operationId: createXmlItem
- requestBody:
- content:
- application/xml:
- schema:
- $ref: "#/components/schemas/XmlItem"
- application/xml; charset=utf-8:
- schema:
- $ref: "#/components/schemas/XmlItem"
- application/xml; charset=utf-16:
- schema:
- $ref: "#/components/schemas/XmlItem"
- text/xml:
- schema:
- $ref: "#/components/schemas/XmlItem"
- text/xml; charset=utf-8:
- schema:
- $ref: "#/components/schemas/XmlItem"
- text/xml; charset=utf-16:
- schema:
- $ref: "#/components/schemas/XmlItem"
- description: XmlItem Body
- required: true
- responses:
- "200":
- content: {}
- description: successful operation
- summary: creates an XmlItem
- tags:
- - fake
- x-codegen-request-body-name: XmlItem
- x-content-type: application/xml
- x-accepts:
- - application/json
- /another-fake/dummy:
- patch:
- description: To test special tags and operation ID starting with number
- operationId: 123_test_@#$%_special_tags
- parameters:
- - description: to test uuid example value
- in: header
- name: uuid_test
- required: true
- schema:
- format: uuid
- type: string
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: client model
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Client"
- description: successful operation
- summary: To test special tags
- tags:
- - $another-fake?
- x-codegen-request-body-name: body
- x-content-type: application/json
- x-accepts:
- - application/json
- /fake/body-with-file-schema:
- put:
- description: "For this test, the body for this request much reference a schema\
- \ named `File`."
- operationId: testBodyWithFileSchema
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/FileSchemaTestClass"
- required: true
- responses:
- "200":
- content: {}
- description: Success
- tags:
- - fake
- x-codegen-request-body-name: body
- x-content-type: application/json
- x-accepts:
- - application/json
- /fake/test-query-parameters:
- put:
- description: To test the collection format in query parameters
- operationId: testQueryParameterCollectionFormat
- parameters:
- - explode: false
- in: query
- name: pipe
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - in: query
- name: ioutil
- required: true
- schema:
- items:
- type: string
- type: array
- - in: query
- name: http
- required: true
- schema:
- items:
- type: string
- type: array
- style: spaceDelimited
- - explode: false
- in: query
- name: url
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: true
- in: query
- name: context
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- responses:
- "200":
- content: {}
- description: Success
- tags:
- - fake
- x-accepts:
- - application/json
- /fake/{petId}/uploadImageWithRequiredFile:
- post:
- operationId: uploadFileWithRequiredFile
- parameters:
- - description: ID of pet to update
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- requestBody:
- content:
- multipart/form-data:
- schema:
- $ref: "#/components/schemas/uploadFileWithRequiredFile_request"
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ApiResponse"
- description: successful operation
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: uploads an image (required)
- tags:
- - pet
- x-content-type: multipart/form-data
- x-accepts:
- - application/json
+ - application/xml
components:
- schemas:
- Order:
- example:
- id: 0
- petId: 6
- quantity: 1
- shipDate: 2000-01-23T04:56:07.000+00:00
- status: placed
- complete: false
- properties:
- id:
- format: int64
- type: integer
- petId:
- format: int64
- type: integer
- quantity:
- format: int32
- type: integer
- shipDate:
- format: date-time
- type: string
- status:
- description: Order Status
- enum:
- - placed
- - approved
- - delivered
- type: string
- complete:
- default: false
- type: boolean
- type: object
- xml:
- name: Order
- Category:
- example:
- id: 6
- name: default-name
- properties:
- id:
- format: int64
- type: integer
- name:
- default: default-name
- type: string
- required:
- - name
- type: object
- xml:
- name: Category
- User:
- example:
- id: 0
- username: username
- firstName: firstName
- lastName: lastName
- email: email
- password: password
- phone: phone
- userStatus: 6
- properties:
- id:
- format: int64
- type: integer
- x-is-unique: true
- username:
- type: string
- firstName:
- type: string
- lastName:
- type: string
- email:
- type: string
- password:
- type: string
- phone:
- type: string
- userStatus:
- description: User Status
- format: int32
- type: integer
- type: object
- xml:
- name: User
- Tag:
- example:
- id: 1
- name: name
- properties:
- id:
- format: int64
- type: integer
- name:
- type: string
- type: object
- xml:
- name: Tag
- Pet:
- example:
- id: 0
- category:
- id: 6
- name: default-name
- name: doggie
- photoUrls:
- - photoUrls
- - photoUrls
- tags:
- - id: 1
- name: name
- - id: 1
- name: name
- status: available
- properties:
- id:
- format: int64
- type: integer
- x-is-unique: true
- category:
- $ref: "#/components/schemas/Category"
- name:
- example: doggie
- type: string
- photoUrls:
- items:
- type: string
- type: array
- uniqueItems: true
- xml:
- name: photoUrl
- wrapped: true
- tags:
- items:
- $ref: "#/components/schemas/Tag"
- type: array
- xml:
- name: tag
- wrapped: true
- status:
- description: pet status in the store
- enum:
- - available
- - pending
- - sold
- type: string
- required:
- - name
- - photoUrls
- type: object
- xml:
- name: Pet
- ApiResponse:
- example:
- code: 0
- type: type
- message: message
- properties:
- code:
- format: int32
- type: integer
- type:
- type: string
- message:
- type: string
- type: object
- $special[model.name]:
- properties:
- $special[property.name]:
- format: int64
- type: integer
- type: object
- xml:
- name: "$special[model.name]"
- Return:
- description: Model for testing reserved words
- properties:
- return:
- format: int32
- type: integer
- type: object
- xml:
- name: Return
- Name:
- description: Model for testing model name same as property name
- properties:
- name:
- format: int32
- type: integer
- snake_case:
- format: int32
- readOnly: true
- type: integer
- property:
- type: string
- "123Number":
- readOnly: true
- type: integer
- required:
- - name
- type: object
- xml:
- name: Name
- "200_response":
- description: Model for testing model name starting with number
- properties:
- name:
- format: int32
- type: integer
- class:
- type: string
- type: object
- xml:
- name: Name
- ClassModel:
- description: Model for testing model with "_class" property
- properties:
- _class:
- type: string
- type: object
- Dog:
- allOf:
- - $ref: "#/components/schemas/Animal"
- - properties:
- breed:
- type: string
- type: object
- Cat:
- allOf:
- - $ref: "#/components/schemas/Animal"
- - properties:
- declawed:
- type: boolean
- type: object
- BigCat:
- allOf:
- - $ref: "#/components/schemas/Cat"
- - properties:
- kind:
- enum:
- - lions
- - tigers
- - leopards
- - jaguars
- type: string
- type: object
- Animal:
- discriminator:
- propertyName: className
- properties:
- className:
- type: string
- color:
- default: red
- type: string
- required:
- - className
- type: object
- AnimalFarm:
- items:
- $ref: "#/components/schemas/Animal"
- type: array
- format_test:
- properties:
- integer:
- maximum: 100
- minimum: 10
- type: integer
- int32:
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- int64:
- format: int64
- type: integer
- number:
- maximum: 543.2
- minimum: 32.1
- type: number
- float:
- format: float
- maximum: 987.6
- minimum: 54.3
- type: number
- double:
- format: double
- maximum: 123.4
- minimum: 67.8
- type: number
- string:
- pattern: "/[a-z]/i"
- type: string
- byte:
- format: byte
- pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
- type: string
- binary:
- format: binary
- type: string
- date:
- format: date
- type: string
- dateTime:
- format: date-time
- type: string
- uuid:
- example: 72f98069-206d-4f12-9f12-3d1e525a8e84
- format: uuid
- type: string
- password:
- format: password
- maxLength: 64
- minLength: 10
- type: string
- BigDecimal:
- format: number
- type: string
- required:
- - byte
- - date
- - number
- - password
- type: object
- EnumClass:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- Enum_Test:
+ requestBodies:
+ Pet:
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Pet"
+ application/xml:
+ schema:
+ $ref: "#/components/schemas/Pet"
+ description: Pet object that needs to be added to the store
+ required: true
+ schemas:
+ Category:
+ description: A category for a pet
+ example:
+ id: 6
+ name: name
properties:
- enum_string:
- enum:
- - UPPER
- - lower
- - ""
- type: string
- enum_string_required:
- enum:
- - UPPER
- - lower
- - ""
- type: string
- enum_integer:
- enum:
- - 1
- - -1
- format: int32
+ id:
+ format: int64
type: integer
- enum_number:
- enum:
- - 1.1
- - -1.2
- format: double
- type: number
- outerEnum:
- $ref: "#/components/schemas/OuterEnum"
- required:
- - enum_string_required
- type: object
- AdditionalPropertiesClass:
- properties:
- map_string:
- additionalProperties:
- type: string
- type: object
- map_number:
- additionalProperties:
- type: number
- type: object
- map_integer:
- additionalProperties:
- type: integer
- type: object
- map_boolean:
- additionalProperties:
- type: boolean
- type: object
- map_array_integer:
- additionalProperties:
- items:
- type: integer
- type: array
- type: object
- map_array_anytype:
- additionalProperties:
- items:
- properties: {}
- type: object
- type: array
- type: object
- map_map_string:
- additionalProperties:
- additionalProperties:
- type: string
- type: object
- type: object
- map_map_anytype:
- additionalProperties:
- additionalProperties:
- properties: {}
- type: object
- type: object
- type: object
- anytype_1:
- properties: {}
- type: object
- anytype_2:
- type: object
- anytype_3:
- properties: {}
- type: object
- type: object
- AdditionalPropertiesString:
- additionalProperties:
- type: string
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesInteger:
- additionalProperties:
- type: integer
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesNumber:
- additionalProperties:
- type: number
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesBoolean:
- additionalProperties:
- type: boolean
- properties:
name:
+ pattern: "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$"
type: string
+ title: Pet category
type: object
- AdditionalPropertiesArray:
- additionalProperties:
- items:
- properties: {}
- type: object
- type: array
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesObject:
- additionalProperties:
- additionalProperties:
- properties: {}
- type: object
- type: object
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesAnyType:
- additionalProperties:
- properties: {}
- type: object
- properties:
- name:
- type: string
- type: object
- MixedPropertiesAndAdditionalPropertiesClass:
- properties:
- uuid:
- format: uuid
- type: string
- dateTime:
- format: date-time
- type: string
- map:
- additionalProperties:
- $ref: "#/components/schemas/Animal"
- type: object
- type: object
- List:
- properties:
- "123-list":
- type: string
- type: object
- Client:
- example:
- client: client
- properties:
- client:
- type: string
- type: object
- ReadOnlyFirst:
- properties:
- bar:
- readOnly: true
- type: string
- baz:
- type: string
- type: object
- hasOnlyReadOnly:
- properties:
- bar:
- readOnly: true
- type: string
- foo:
- readOnly: true
- type: string
- type: object
- Capitalization:
- properties:
- smallCamel:
- type: string
- CapitalCamel:
- type: string
- small_Snake:
- type: string
- Capital_Snake:
- type: string
- SCA_ETH_Flow_Points:
- type: string
- ATT_NAME:
- description: |
- Name of the pet
- type: string
- type: object
- MapTest:
- properties:
- map_map_of_string:
- additionalProperties:
- additionalProperties:
- type: string
- type: object
- type: object
- map_of_enum_string:
- additionalProperties:
- enum:
- - UPPER
- - lower
- type: string
- type: object
- direct_map:
- additionalProperties:
- type: boolean
- type: object
- indirect_map:
- additionalProperties:
- type: boolean
- type: object
- type: object
- ArrayTest:
- properties:
- array_of_string:
- items:
- type: string
- type: array
- array_array_of_integer:
- items:
- items:
- format: int64
- type: integer
- type: array
- type: array
- array_array_of_model:
- items:
- items:
- $ref: "#/components/schemas/ReadOnlyFirst"
- type: array
- type: array
- type: object
- NumberOnly:
- properties:
- JustNumber:
- type: number
- type: object
- ArrayOfNumberOnly:
- properties:
- ArrayNumber:
- items:
- type: number
- type: array
- type: object
- ArrayOfArrayOfNumberOnly:
- properties:
- ArrayArrayNumber:
- items:
- items:
- type: number
- type: array
- type: array
- type: object
- EnumArrays:
- properties:
- just_symbol:
- enum:
- - '>='
- - $
- type: string
- array_enum:
- items:
- enum:
- - fish
- - crab
- type: string
- type: array
- type: object
- OuterEnum:
- enum:
- - placed
- - approved
- - delivered
- type: string
- OuterComposite:
- example:
- my_number: 0.8008281904610115
- my_string: my_string
- my_boolean: true
- properties:
- my_number:
- type: number
- my_string:
- type: string
- my_boolean:
- type: boolean
- x-codegen-body-parameter-name: boolean_post_body
- type: object
- OuterNumber:
- type: number
- OuterString:
- type: string
- OuterBoolean:
- type: boolean
- x-codegen-body-parameter-name: boolean_post_body
- StringBooleanMap:
- additionalProperties:
- type: boolean
- type: object
- FileSchemaTestClass:
- example:
- file:
- sourceURI: sourceURI
- files:
- - sourceURI: sourceURI
- - sourceURI: sourceURI
- properties:
- file:
- $ref: "#/components/schemas/File"
- files:
- items:
- $ref: "#/components/schemas/File"
- type: array
- type: object
- File:
- description: Must be named `File` for test.
+ xml:
+ name: Category
+ Tag:
+ description: A tag for a pet
example:
- sourceURI: sourceURI
- properties:
- sourceURI:
- description: Test capitalization
- type: string
- type: object
- TypeHolderDefault:
+ id: 1
+ name: name
properties:
- string_item:
- default: what
- type: string
- number_item:
- type: number
- integer_item:
+ id:
+ format: int64
type: integer
- bool_item:
- default: true
- type: boolean
- array_item:
- items:
- type: integer
- type: array
- required:
- - array_item
- - bool_item
- - integer_item
- - number_item
- - string_item
- type: object
- TypeHolderExample:
- properties:
- string_item:
- example: what
+ name:
type: string
- number_item:
- example: 1.234
- type: number
- float_item:
- example: 1.234
- format: float
- type: number
- integer_item:
- example: -2
- type: integer
- bool_item:
- example: true
- type: boolean
- array_item:
- example:
- - 0
- - 1
- - 2
- - 3
- items:
- type: integer
- type: array
- required:
- - array_item
- - bool_item
- - float_item
- - integer_item
- - number_item
- - string_item
+ title: Pet Tag
type: object
- XmlItem:
+ xml:
+ name: Tag
+ Pet:
+ description: A pet for sale in the pet store
+ example:
+ id: 0
+ category:
+ id: 6
+ name: name
+ name: doggie
+ photoUrls:
+ - photoUrls
+ - photoUrls
+ tags:
+ - id: 1
+ name: name
+ - id: 1
+ name: name
+ status: available
properties:
- attribute_string:
- example: string
- type: string
- xml:
- attribute: true
- attribute_number:
- example: 1.234
- type: number
- xml:
- attribute: true
- attribute_integer:
- example: -2
- type: integer
- xml:
- attribute: true
- attribute_boolean:
- example: true
- type: boolean
- xml:
- attribute: true
- wrapped_array:
- items:
- type: integer
- type: array
- xml:
- wrapped: true
- name_string:
- example: string
- type: string
- xml:
- name: xml_name_string
- name_number:
- example: 1.234
- type: number
- xml:
- name: xml_name_number
- name_integer:
- example: -2
- type: integer
- xml:
- name: xml_name_integer
- name_boolean:
- example: true
- type: boolean
- xml:
- name: xml_name_boolean
- name_array:
- items:
- type: integer
- xml:
- name: xml_name_array_item
- type: array
- name_wrapped_array:
- items:
- type: integer
- xml:
- name: xml_name_wrapped_array_item
- type: array
- xml:
- name: xml_name_wrapped_array
- wrapped: true
- prefix_string:
- example: string
- type: string
- xml:
- prefix: ab
- prefix_number:
- example: 1.234
- type: number
- xml:
- prefix: cd
- prefix_integer:
- example: -2
+ id:
+ format: int64
type: integer
- xml:
- prefix: ef
- prefix_boolean:
- example: true
- type: boolean
- xml:
- prefix: gh
- prefix_array:
- items:
- type: integer
- xml:
- prefix: ij
- type: array
- prefix_wrapped_array:
- items:
- type: integer
- xml:
- prefix: mn
- type: array
- xml:
- prefix: kl
- wrapped: true
- namespace_string:
- example: string
+ category:
+ $ref: "#/components/schemas/Category"
+ name:
+ example: doggie
type: string
- xml:
- namespace: http://a.com/schema
- namespace_number:
- example: 1.234
- type: number
- xml:
- namespace: http://b.com/schema
- namespace_integer:
- example: -2
- type: integer
- xml:
- namespace: http://c.com/schema
- namespace_boolean:
- example: true
- type: boolean
- xml:
- namespace: http://d.com/schema
- namespace_array:
- items:
- type: integer
- xml:
- namespace: http://e.com/schema
- type: array
- namespace_wrapped_array:
+ photoUrls:
items:
- type: integer
- xml:
- namespace: http://g.com/schema
+ type: string
type: array
xml:
- namespace: http://f.com/schema
+ name: photoUrl
wrapped: true
- prefix_ns_string:
- example: string
- type: string
- xml:
- namespace: http://a.com/schema
- prefix: a
- prefix_ns_number:
- example: 1.234
- type: number
- xml:
- namespace: http://b.com/schema
- prefix: b
- prefix_ns_integer:
- example: -2
- type: integer
- xml:
- namespace: http://c.com/schema
- prefix: c
- prefix_ns_boolean:
- example: true
- type: boolean
- xml:
- namespace: http://d.com/schema
- prefix: d
- prefix_ns_array:
- items:
- type: integer
- xml:
- namespace: http://e.com/schema
- prefix: e
- type: array
- prefix_ns_wrapped_array:
+ tags:
items:
- type: integer
- xml:
- namespace: http://g.com/schema
- prefix: g
+ $ref: "#/components/schemas/Tag"
type: array
xml:
- namespace: http://f.com/schema
- prefix: f
+ name: tag
wrapped: true
- type: object
- xml:
- namespace: http://a.com/schema
- prefix: pre
- updatePetWithForm_request:
- properties:
- name:
- description: Updated name of the pet
- type: string
status:
- description: Updated status of the pet
- type: string
- type: object
- uploadFile_request:
- properties:
- additionalMetadata:
- description: Additional data to pass to server
- type: string
- file:
- description: file to upload
- format: binary
- type: string
- type: object
- testEnumParameters_request:
- properties:
- enum_form_string_array:
- description: Form parameter enum test (string array)
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- enum_form_string:
- default: -efg
- description: Form parameter enum test (string)
+ deprecated: true
+ description: pet status in the store
enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- type: object
- testEndpointParameters_request:
- properties:
- integer:
- description: None
- format: int32
- maximum: 100
- minimum: 10
- type: integer
- int32:
- description: None
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- int64:
- description: None
- format: int64
- type: integer
- number:
- description: None
- maximum: 543.2
- minimum: 32.1
- type: number
- float:
- description: None
- format: float
- maximum: 987.6
- type: number
- double:
- description: None
- format: double
- maximum: 123.4
- minimum: 67.8
- type: number
- string:
- description: None
- pattern: "/[a-z]/i"
- type: string
- pattern_without_delimiter:
- description: None
- pattern: "^[A-Z].*"
- type: string
- byte:
- description: None
- format: byte
- type: string
- binary:
- description: None
- format: binary
- type: string
- date:
- description: None
- format: date
- type: string
- dateTime:
- description: None
- format: date-time
- type: string
- password:
- description: None
- format: password
- maxLength: 64
- minLength: 10
- type: string
- callback:
- description: None
- type: string
- required:
- - byte
- - double
- - number
- - pattern_without_delimiter
- type: object
- testJsonFormData_request:
- properties:
- param:
- description: field1
- type: string
- param2:
- description: field2
- type: string
- required:
- - param
- - param2
- type: object
- uploadFileWithRequiredFile_request:
- properties:
- additionalMetadata:
- description: Additional data to pass to server
- type: string
- requiredFile:
- description: file to upload
- format: binary
+ - available
+ - pending
+ - sold
type: string
required:
- - requiredFile
+ - name
+ - photoUrls
+ title: a Pet
type: object
+ xml:
+ name: Pet
securitySchemes:
petstore_auth:
flows:
@@ -2240,16 +153,4 @@ components:
write:pets: modify pets in your account
read:pets: read your pets
type: oauth2
- api_key:
- in: header
- name: api_key
- type: apiKey
- api_key_query:
- in: query
- name: api_key_query
- type: apiKey
- http_basic_test:
- scheme: basic
- type: http
-x-original-swagger-version: "2.0"
diff --git a/samples/client/petstore/java/rest-assured-jackson3/build.gradle b/samples/client/petstore/java/rest-assured-jackson3/build.gradle
index 6bf1529d6c4f..9d6755cbcb93 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/build.gradle
+++ b/samples/client/petstore/java/rest-assured-jackson3/build.gradle
@@ -24,7 +24,7 @@ ext {
junit_version = "5.10.3"
jackson3_version = "3.1.6"
jackson_annotations_version = "2.21"
- jackson_databind_nullable_version = "0.2.11"
+ jackson_databind_nullable_version = "0.2.12"
okio_version = "3.6.0"
jakarta_annotation_version = "1.3.5"
}
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesAnyType.md
deleted file mode 100644
index 5158bd815e67..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesAnyType.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# AdditionalPropertiesAnyType
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesArray.md b/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesArray.md
deleted file mode 100644
index 9edcf46b0e44..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesArray.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# AdditionalPropertiesArray
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesBoolean.md
deleted file mode 100644
index 1e1ed764a56e..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesBoolean.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# AdditionalPropertiesBoolean
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesClass.md
deleted file mode 100644
index 79402f75c68c..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesClass.md
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-# AdditionalPropertiesClass
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**mapString** | **Map<String, String>** | | [optional] |
-|**mapNumber** | **Map<String, BigDecimal>** | | [optional] |
-|**mapInteger** | **Map<String, Integer>** | | [optional] |
-|**mapBoolean** | **Map<String, Boolean>** | | [optional] |
-|**mapArrayInteger** | **Map<String, List<Integer>>** | | [optional] |
-|**mapArrayAnytype** | **Map<String, List<Object>>** | | [optional] |
-|**mapMapString** | **Map<String, Map<String, String>>** | | [optional] |
-|**mapMapAnytype** | **Map<String, Map<String, Object>>** | | [optional] |
-|**anytype1** | **Object** | | [optional] |
-|**anytype2** | **Object** | | [optional] |
-|**anytype3** | **Object** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesInteger.md
deleted file mode 100644
index cbc1673c059b..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesInteger.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# AdditionalPropertiesInteger
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesNumber.md
deleted file mode 100644
index 0bd133ccf09a..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesNumber.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# AdditionalPropertiesNumber
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesObject.md b/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesObject.md
deleted file mode 100644
index 3f419f8551ff..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesObject.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# AdditionalPropertiesObject
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesString.md b/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesString.md
deleted file mode 100644
index 269a1961cf88..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/AdditionalPropertiesString.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# AdditionalPropertiesString
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Animal.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Animal.md
deleted file mode 100644
index d9b32f14c88a..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Animal.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# Animal
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**className** | **String** | | |
-|**color** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/AnotherFakeApi.md b/samples/client/petstore/java/rest-assured-jackson3/docs/AnotherFakeApi.md
deleted file mode 100644
index f8551ba72534..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/AnotherFakeApi.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# AnotherFakeApi
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags |
-
-
-
-# **call123testSpecialTags**
-> Client call123testSpecialTags(uuidTest, body)
-
-To test special tags
-
-To test special tags and operation ID starting with number
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-AnotherFakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).anotherFake();
-
-api.call123testSpecialTags()
- .uuidTestHeader(uuidTest)
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **uuidTest** | **UUID**| to test uuid example value | |
-| **body** | [**Client**](Client.md)| client model | |
-
-### Return type
-
-[**Client**](Client.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/rest-assured-jackson3/docs/ArrayOfArrayOfNumberOnly.md
deleted file mode 100644
index 0188db3eb131..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/ArrayOfArrayOfNumberOnly.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# ArrayOfArrayOfNumberOnly
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**arrayArrayNumber** | **List<List<BigDecimal>>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/rest-assured-jackson3/docs/ArrayOfNumberOnly.md
deleted file mode 100644
index a5753530aada..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/ArrayOfNumberOnly.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# ArrayOfNumberOnly
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**arrayNumber** | **List<BigDecimal>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/ArrayTest.md b/samples/client/petstore/java/rest-assured-jackson3/docs/ArrayTest.md
deleted file mode 100644
index ae2672809aa9..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/ArrayTest.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# ArrayTest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**arrayOfString** | **List<String>** | | [optional] |
-|**arrayArrayOfInteger** | **List<List<Long>>** | | [optional] |
-|**arrayArrayOfModel** | **List<List<@Valid ReadOnlyFirst>>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/BigCat.md b/samples/client/petstore/java/rest-assured-jackson3/docs/BigCat.md
deleted file mode 100644
index d317a0617f37..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/BigCat.md
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-# BigCat
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**kind** | [**KindEnum**](#KindEnum) | | [optional] |
-
-
-
-## Enum: KindEnum
-
-| Name | Value |
-|---- | -----|
-| LIONS | "lions" |
-| TIGERS | "tigers" |
-| LEOPARDS | "leopards" |
-| JAGUARS | "jaguars" |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Capitalization.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Capitalization.md
deleted file mode 100644
index 82a812711de2..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Capitalization.md
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-# Capitalization
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**smallCamel** | **String** | | [optional] |
-|**capitalCamel** | **String** | | [optional] |
-|**smallSnake** | **String** | | [optional] |
-|**capitalSnake** | **String** | | [optional] |
-|**scAETHFlowPoints** | **String** | | [optional] |
-|**ATT_NAME** | **String** | Name of the pet | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Cat.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Cat.md
deleted file mode 100644
index 390dd519c8ce..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Cat.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# Cat
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**declawed** | **Boolean** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Category.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Category.md
index ab6d1ec334dc..a7fc939d252e 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Category.md
+++ b/samples/client/petstore/java/rest-assured-jackson3/docs/Category.md
@@ -2,13 +2,14 @@
# Category
+A category for a pet
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**id** | **Long** | | [optional] |
-|**name** | **String** | | |
+|**name** | **String** | | [optional] |
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/ClassModel.md b/samples/client/petstore/java/rest-assured-jackson3/docs/ClassModel.md
deleted file mode 100644
index af46dea1f6c8..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/ClassModel.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# ClassModel
-
-Model for testing model with \"_class\" property
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**propertyClass** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Client.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Client.md
deleted file mode 100644
index ef07b4ab8b9d..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Client.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# Client
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**client** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Dog.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Dog.md
deleted file mode 100644
index 972c981c0d05..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Dog.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# Dog
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**breed** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/EnumArrays.md b/samples/client/petstore/java/rest-assured-jackson3/docs/EnumArrays.md
deleted file mode 100644
index b2222d5beb25..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/EnumArrays.md
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-# EnumArrays
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**justSymbol** | [**JustSymbolEnum**](#JustSymbolEnum) | | [optional] |
-|**arrayEnum** | [**List<ArrayEnumEnum>**](#List<ArrayEnumEnum>) | | [optional] |
-
-
-
-## Enum: JustSymbolEnum
-
-| Name | Value |
-|---- | -----|
-| GREATER_THAN_OR_EQUAL_TO | ">=" |
-| DOLLAR | "$" |
-
-
-
-## Enum: List<ArrayEnumEnum>
-
-| Name | Value |
-|---- | -----|
-| FISH | "fish" |
-| CRAB | "crab" |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/EnumClass.md b/samples/client/petstore/java/rest-assured-jackson3/docs/EnumClass.md
deleted file mode 100644
index b314590a7591..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/EnumClass.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# EnumClass
-
-## Enum
-
-
-* `_ABC` (value: `"_abc"`)
-
-* `_EFG` (value: `"-efg"`)
-
-* `_XYZ_` (value: `"(xyz)"`)
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/EnumTest.md b/samples/client/petstore/java/rest-assured-jackson3/docs/EnumTest.md
deleted file mode 100644
index bf2def484c6d..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/EnumTest.md
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-# EnumTest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**enumString** | [**EnumStringEnum**](#EnumStringEnum) | | [optional] |
-|**enumStringRequired** | [**EnumStringRequiredEnum**](#EnumStringRequiredEnum) | | |
-|**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] |
-|**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] |
-|**outerEnum** | **OuterEnum** | | [optional] |
-
-
-
-## Enum: EnumStringEnum
-
-| Name | Value |
-|---- | -----|
-| UPPER | "UPPER" |
-| LOWER | "lower" |
-| EMPTY | "" |
-
-
-
-## Enum: EnumStringRequiredEnum
-
-| Name | Value |
-|---- | -----|
-| UPPER | "UPPER" |
-| LOWER | "lower" |
-| EMPTY | "" |
-
-
-
-## Enum: EnumIntegerEnum
-
-| Name | Value |
-|---- | -----|
-| NUMBER_1 | 1 |
-| NUMBER_MINUS_1 | -1 |
-
-
-
-## Enum: EnumNumberEnum
-
-| Name | Value |
-|---- | -----|
-| NUMBER_1_DOT_1 | 1.1 |
-| NUMBER_MINUS_1_DOT_2 | -1.2 |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/FakeApi.md b/samples/client/petstore/java/rest-assured-jackson3/docs/FakeApi.md
deleted file mode 100644
index 969883dc5140..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/FakeApi.md
+++ /dev/null
@@ -1,641 +0,0 @@
-# FakeApi
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**createXmlItem**](FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem |
-| [**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | |
-| [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | |
-| [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | |
-| [**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | |
-| [**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | |
-| [**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | |
-| [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model |
-| [**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 |
-| [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters |
-| [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) |
-| [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties |
-| [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data |
-| [**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | |
-
-
-
-# **createXmlItem**
-> createXmlItem(xmlItem)
-
-creates an XmlItem
-
-this route creates an XmlItem
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.createXmlItem()
- .body(xmlItem).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
- - **Accept**: Not defined
-
-
-# **fakeOuterBooleanSerialize**
-> Boolean fakeOuterBooleanSerialize(body)
-
-
-
-Test serialization of outer boolean types
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.fakeOuterBooleanSerialize().execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | **Boolean**| Input boolean as post body | [optional] |
-
-### Return type
-
-**Boolean**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: */*
-
-
-# **fakeOuterCompositeSerialize**
-> OuterComposite fakeOuterCompositeSerialize(body)
-
-
-
-Test serialization of object with outer number type
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.fakeOuterCompositeSerialize().execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] |
-
-### Return type
-
-[**OuterComposite**](OuterComposite.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: */*
-
-
-# **fakeOuterNumberSerialize**
-> BigDecimal fakeOuterNumberSerialize(body)
-
-
-
-Test serialization of outer number types
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.fakeOuterNumberSerialize().execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | **BigDecimal**| Input number as post body | [optional] |
-
-### Return type
-
-[**BigDecimal**](BigDecimal.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: */*
-
-
-# **fakeOuterStringSerialize**
-> String fakeOuterStringSerialize(body)
-
-
-
-Test serialization of outer string types
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.fakeOuterStringSerialize().execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | **String**| Input string as post body | [optional] |
-
-### Return type
-
-**String**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: */*
-
-
-# **testBodyWithFileSchema**
-> testBodyWithFileSchema(body)
-
-
-
-For this test, the body for this request much reference a schema named `File`.
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.testBodyWithFileSchema()
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: Not defined
-
-
-# **testBodyWithQueryParams**
-> testBodyWithQueryParams(query, body)
-
-
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.testBodyWithQueryParams()
- .queryQuery(query)
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **query** | **String**| | |
-| **body** | [**User**](User.md)| | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: Not defined
-
-
-# **testClientModel**
-> Client testClientModel(body)
-
-To test \"client\" model
-
-To test \"client\" model
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.testClientModel()
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**Client**](Client.md)| client model | |
-
-### Return type
-
-[**Client**](Client.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **testEndpointParameters**
-> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
-
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.testEndpointParameters()
- .numberForm(number)
- ._doubleForm(_double)
- .patternWithoutDelimiterForm(patternWithoutDelimiter)
- ._byteForm(_byte).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **number** | **BigDecimal**| None | |
-| **_double** | **Double**| None | |
-| **patternWithoutDelimiter** | **String**| None | |
-| **_byte** | **byte[]**| None | |
-| **integer** | **Integer**| None | [optional] |
-| **int32** | **Integer**| None | [optional] |
-| **int64** | **Long**| None | [optional] |
-| **_float** | **Float**| None | [optional] |
-| **string** | **String**| None | [optional] |
-| **binary** | **File**| None | [optional] |
-| **date** | **LocalDate**| None | [optional] |
-| **dateTime** | **OffsetDateTime**| None | [optional] |
-| **password** | **String**| None | [optional] |
-| **paramCallback** | **String**| None | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[http_basic_test](../README.md#http_basic_test)
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-
-# **testEnumParameters**
-> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString)
-
-To test enum parameters
-
-To test enum parameters
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.testEnumParameters().execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **enumHeaderStringArray** | [**List<String>**](String.md)| Header parameter enum test (string array) | [optional] [enum: >, $] |
-| **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
-| **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] |
-| **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
-| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] |
-| **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] |
-| **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] |
-| **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-
-# **testGroupParameters**
-> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group)
-
-Fake endpoint to test group parameters (optional)
-
-Fake endpoint to test group parameters (optional)
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.testGroupParameters()
- .requiredStringGroupQuery(requiredStringGroup)
- .requiredBooleanGroupHeader(requiredBooleanGroup)
- .requiredInt64GroupQuery(requiredInt64Group).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **requiredStringGroup** | **Integer**| Required String in group parameters | |
-| **requiredBooleanGroup** | **Boolean**| Required Boolean in group parameters | |
-| **requiredInt64Group** | **Long**| Required Integer in group parameters | |
-| **stringGroup** | **Integer**| String in group parameters | [optional] |
-| **booleanGroup** | **Boolean**| Boolean in group parameters | [optional] |
-| **int64Group** | **Long**| Integer in group parameters | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
-# **testInlineAdditionalProperties**
-> testInlineAdditionalProperties(param)
-
-test inline additionalProperties
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.testInlineAdditionalProperties()
- .body(param).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **param** | [**Map<String, String>**](String.md)| request body | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: Not defined
-
-
-# **testJsonFormData**
-> testJsonFormData(param, param2)
-
-test json serialization of form data
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.testJsonFormData()
- .paramForm(param)
- .param2Form(param2).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **param** | **String**| field1 | |
-| **param2** | **String**| field2 | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-
-# **testQueryParameterCollectionFormat**
-> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
-
-
-
-To test the collection format in query parameters
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
-
-api.testQueryParameterCollectionFormat()
- .pipeQuery(pipe)
- .ioutilQuery(ioutil)
- .httpQuery(http)
- .urlQuery(url)
- .contextQuery(context).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **pipe** | [**List<String>**](String.md)| | |
-| **ioutil** | [**List<String>**](String.md)| | |
-| **http** | [**List<String>**](String.md)| | |
-| **url** | [**List<String>**](String.md)| | |
-| **context** | [**List<String>**](String.md)| | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/rest-assured-jackson3/docs/FakeClassnameTags123Api.md
deleted file mode 100644
index 71461af42f64..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/FakeClassnameTags123Api.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# FakeClassnameTags123Api
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case |
-
-
-
-# **testClassname**
-> Client testClassname(body)
-
-To test class name in snake case
-
-To test class name in snake case
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-FakeClassnameTags123Api api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).fakeClassnameTags123();
-
-api.testClassname()
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**Client**](Client.md)| client model | |
-
-### Return type
-
-[**Client**](Client.md)
-
-### Authorization
-
-[api_key_query](../README.md#api_key_query)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/FileSchemaTestClass.md b/samples/client/petstore/java/rest-assured-jackson3/docs/FileSchemaTestClass.md
deleted file mode 100644
index 85d1a0636694..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/FileSchemaTestClass.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# FileSchemaTestClass
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**_file** | [**ModelFile**](ModelFile.md) | | [optional] |
-|**files** | [**List<ModelFile>**](ModelFile.md) | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/FormatTest.md b/samples/client/petstore/java/rest-assured-jackson3/docs/FormatTest.md
deleted file mode 100644
index 9c68c3080e13..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/FormatTest.md
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-# FormatTest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**integer** | **Integer** | | [optional] |
-|**int32** | **Integer** | | [optional] |
-|**int64** | **Long** | | [optional] |
-|**number** | **BigDecimal** | | |
-|**_float** | **Float** | | [optional] |
-|**_double** | **Double** | | [optional] |
-|**string** | **String** | | [optional] |
-|**_byte** | **byte[]** | | |
-|**binary** | **File** | | [optional] |
-|**date** | **LocalDate** | | |
-|**dateTime** | **OffsetDateTime** | | [optional] |
-|**uuid** | **UUID** | | [optional] |
-|**password** | **String** | | |
-|**bigDecimal** | **BigDecimal** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/rest-assured-jackson3/docs/HasOnlyReadOnly.md
deleted file mode 100644
index 29da5205dbba..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/HasOnlyReadOnly.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# HasOnlyReadOnly
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**bar** | **String** | | [optional] [readonly] |
-|**foo** | **String** | | [optional] [readonly] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/MapTest.md b/samples/client/petstore/java/rest-assured-jackson3/docs/MapTest.md
deleted file mode 100644
index 54380188e1d6..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/MapTest.md
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-# MapTest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**mapMapOfString** | **Map<String, Map<String, String>>** | | [optional] |
-|**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional] |
-|**directMap** | **Map<String, Boolean>** | | [optional] |
-|**indirectMap** | **Map<String, Boolean>** | | [optional] |
-
-
-
-## Enum: Map<String, InnerEnum>
-
-| Name | Value |
-|---- | -----|
-| UPPER | "UPPER" |
-| LOWER | "lower" |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/rest-assured-jackson3/docs/MixedPropertiesAndAdditionalPropertiesClass.md
deleted file mode 100644
index a5ddf0faa6a9..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# MixedPropertiesAndAdditionalPropertiesClass
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**uuid** | **UUID** | | [optional] |
-|**dateTime** | **OffsetDateTime** | | [optional] |
-|**map** | [**Map<String, Animal>**](Animal.md) | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Model200Response.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Model200Response.md
deleted file mode 100644
index 109411580c62..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Model200Response.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# Model200Response
-
-Model for testing model name starting with number
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **Integer** | | [optional] |
-|**propertyClass** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/ModelApiResponse.md b/samples/client/petstore/java/rest-assured-jackson3/docs/ModelApiResponse.md
deleted file mode 100644
index e374c2dd2dec..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/ModelApiResponse.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# ModelApiResponse
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**code** | **Integer** | | [optional] |
-|**type** | **String** | | [optional] |
-|**message** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/ModelFile.md b/samples/client/petstore/java/rest-assured-jackson3/docs/ModelFile.md
deleted file mode 100644
index adcde984f527..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/ModelFile.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# ModelFile
-
-Must be named `File` for test.
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**sourceURI** | **String** | Test capitalization | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/ModelList.md b/samples/client/petstore/java/rest-assured-jackson3/docs/ModelList.md
deleted file mode 100644
index f93ab7dde8d4..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/ModelList.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# ModelList
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**_123list** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/ModelReturn.md b/samples/client/petstore/java/rest-assured-jackson3/docs/ModelReturn.md
deleted file mode 100644
index 0bd356861eb7..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/ModelReturn.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# ModelReturn
-
-Model for testing reserved words
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**_return** | **Integer** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Name.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Name.md
deleted file mode 100644
index c901d9435309..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Name.md
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-# Name
-
-Model for testing model name same as property name
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **Integer** | | |
-|**snakeCase** | **Integer** | | [optional] [readonly] |
-|**property** | **String** | | [optional] |
-|**_123number** | **Integer** | | [optional] [readonly] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/NumberOnly.md b/samples/client/petstore/java/rest-assured-jackson3/docs/NumberOnly.md
deleted file mode 100644
index b8ed1a4cfae1..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/NumberOnly.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# NumberOnly
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**justNumber** | **BigDecimal** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Order.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Order.md
deleted file mode 100644
index 27af32855c5c..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Order.md
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-# Order
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **Long** | | [optional] |
-|**petId** | **Long** | | [optional] |
-|**quantity** | **Integer** | | [optional] |
-|**shipDate** | **OffsetDateTime** | | [optional] |
-|**status** | [**StatusEnum**](#StatusEnum) | Order Status | [optional] |
-|**complete** | **Boolean** | | [optional] |
-
-
-
-## Enum: StatusEnum
-
-| Name | Value |
-|---- | -----|
-| PLACED | "placed" |
-| APPROVED | "approved" |
-| DELIVERED | "delivered" |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/OuterComposite.md b/samples/client/petstore/java/rest-assured-jackson3/docs/OuterComposite.md
deleted file mode 100644
index 98b56e0763ff..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/OuterComposite.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# OuterComposite
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**myNumber** | **BigDecimal** | | [optional] |
-|**myString** | **String** | | [optional] |
-|**myBoolean** | **Boolean** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/OuterEnum.md b/samples/client/petstore/java/rest-assured-jackson3/docs/OuterEnum.md
deleted file mode 100644
index 1f9b723eb8e7..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/OuterEnum.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# OuterEnum
-
-## Enum
-
-
-* `PLACED` (value: `"placed"`)
-
-* `APPROVED` (value: `"approved"`)
-
-* `DELIVERED` (value: `"delivered"`)
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Pet.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Pet.md
index 54af77a9f5a7..8bb363301232 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Pet.md
+++ b/samples/client/petstore/java/rest-assured-jackson3/docs/Pet.md
@@ -2,6 +2,7 @@
# Pet
+A pet for sale in the pet store
## Properties
@@ -10,7 +11,7 @@
|**id** | **Long** | | [optional] |
|**category** | [**Category**](Category.md) | | [optional] |
|**name** | **String** | | |
-|**photoUrls** | **Set<String>** | | |
+|**photoUrls** | **List<String>** | | |
|**tags** | [**List<Tag>**](Tag.md) | | [optional] |
|**status** | [**StatusEnum**](#StatusEnum) | pet status in the store | [optional] |
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/PetApi.md b/samples/client/petstore/java/rest-assured-jackson3/docs/PetApi.md
index 84b137910886..69ef593be543 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/PetApi.md
+++ b/samples/client/petstore/java/rest-assured-jackson3/docs/PetApi.md
@@ -1,150 +1,19 @@
# PetApi
-All URIs are relative to *http://petstore.swagger.io:80/v2*
+All URIs are relative to *http://petstore.swagger.io/v2*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store |
-| [**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet |
-| [**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status |
-| [**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags |
-| [**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID |
-| [**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet |
-| [**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data |
-| [**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image |
-| [**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) |
# **addPet**
-> addPet(body)
+> Pet addPet(pet)
Add a new pet to the store
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
-
-api.addPet()
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
-
-
-# **deletePet**
-> deletePet(petId, apiKey)
-
-Deletes a pet
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
-
-api.deletePet()
- .petIdPath(petId).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| Pet id to delete | |
-| **apiKey** | **String**| | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
-# **findPetsByStatus**
-> List<Pet> findPetsByStatus(status)
-
-Finds Pets by status
-
-Multiple status values can be provided with comma separated strings
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
-
-api.findPetsByStatus()
- .statusQuery(status).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] |
-
-### Return type
-
-[**List<Pet>**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **findPetsByTags**
-> Set<Pet> findPetsByTags(tags)
-
-Finds Pets by tags
-
-Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
### Example
```java
@@ -155,59 +24,17 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
() -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
+ .setBaseUri("http://petstore.swagger.io/v2"))).pet();
-api.findPetsByTags()
- .tagsQuery(tags).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **tags** | [**Set<String>**](String.md)| Tags to filter by | |
-
-### Return type
-
-[**Set<Pet>**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **getPetById**
-> Pet getPetById(petId)
-
-Find pet by ID
-
-Returns a single pet
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
-
-api.getPetById()
- .petIdPath(petId).execute(r -> r.prettyPeek());
+api.addPet()
+ .body(pet).execute(r -> r.prettyPeek());
```
### Parameters
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| ID of pet to return | |
+| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
### Return type
@@ -215,177 +42,10 @@ api.getPetById()
### Authorization
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **updatePet**
-> updatePet(body)
-
-Update an existing pet
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
-
-api.updatePet()
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
[petstore_auth](../README.md#petstore_auth)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
-
-
-# **updatePetWithForm**
-> updatePetWithForm(petId, name, status)
-
-Updates a pet in the store with form data
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
-
-api.updatePetWithForm()
- .petIdPath(petId).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| ID of pet that needs to be updated | |
-| **name** | **String**| Updated name of the pet | [optional] |
-| **status** | **String**| Updated status of the pet | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-
-# **uploadFile**
-> ModelApiResponse uploadFile(petId, additionalMetadata, _file)
-
-uploads an image
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
-
-api.uploadFile()
- .petIdPath(petId).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| ID of pet to update | |
-| **additionalMetadata** | **String**| Additional data to pass to server | [optional] |
-| **_file** | **File**| file to upload | [optional] |
-
-### Return type
-
-[**ModelApiResponse**](ModelApiResponse.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
-
-
-# **uploadFileWithRequiredFile**
-> ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
-
-uploads an image (required)
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
-
-api.uploadFileWithRequiredFile()
- .petIdPath(petId)
- .requiredFileMultiPart(requiredFile).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| ID of pet to update | |
-| **requiredFile** | **File**| file to upload | |
-| **additionalMetadata** | **String**| Additional data to pass to server | [optional] |
-
-### Return type
-
-[**ModelApiResponse**](ModelApiResponse.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+ - **Accept**: application/xml, application/json
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/ReadOnlyFirst.md b/samples/client/petstore/java/rest-assured-jackson3/docs/ReadOnlyFirst.md
deleted file mode 100644
index ad6af7ee155f..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/ReadOnlyFirst.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# ReadOnlyFirst
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**bar** | **String** | | [optional] [readonly] |
-|**baz** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/SpecialModelName.md b/samples/client/petstore/java/rest-assured-jackson3/docs/SpecialModelName.md
deleted file mode 100644
index 4b6a06e36224..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/SpecialModelName.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# SpecialModelName
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**$specialPropertyName** | **Long** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/StoreApi.md b/samples/client/petstore/java/rest-assured-jackson3/docs/StoreApi.md
deleted file mode 100644
index 7e0a07034651..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/StoreApi.md
+++ /dev/null
@@ -1,174 +0,0 @@
-# StoreApi
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID |
-| [**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status |
-| [**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID |
-| [**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet |
-
-
-
-# **deleteOrder**
-> deleteOrder(orderId)
-
-Delete purchase order by ID
-
-For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-StoreApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).store();
-
-api.deleteOrder()
- .orderIdPath(orderId).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **orderId** | **String**| ID of the order that needs to be deleted | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
-# **getInventory**
-> Map<String, Integer> getInventory()
-
-Returns pet inventories by status
-
-Returns a map of status codes to quantities
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-StoreApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).store();
-
-api.getInventory().execute(r -> r.prettyPeek());
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-**Map<String, Integer>**
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-# **getOrderById**
-> Order getOrderById(orderId)
-
-Find purchase order by ID
-
-For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-StoreApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).store();
-
-api.getOrderById()
- .orderIdPath(orderId).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **orderId** | **Long**| ID of pet that needs to be fetched | |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **placeOrder**
-> Order placeOrder(body)
-
-Place an order for a pet
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-StoreApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).store();
-
-api.placeOrder()
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**Order**](Order.md)| order placed for purchasing the pet | |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/Tag.md b/samples/client/petstore/java/rest-assured-jackson3/docs/Tag.md
index 5088b2dd1c31..abfde4afb501 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/Tag.md
+++ b/samples/client/petstore/java/rest-assured-jackson3/docs/Tag.md
@@ -2,6 +2,7 @@
# Tag
+A tag for a pet
## Properties
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/TypeHolderDefault.md b/samples/client/petstore/java/rest-assured-jackson3/docs/TypeHolderDefault.md
deleted file mode 100644
index 71a9f3dc9027..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/TypeHolderDefault.md
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-# TypeHolderDefault
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**stringItem** | **String** | | |
-|**numberItem** | **BigDecimal** | | |
-|**integerItem** | **Integer** | | |
-|**boolItem** | **Boolean** | | |
-|**arrayItem** | **List<Integer>** | | |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/TypeHolderExample.md b/samples/client/petstore/java/rest-assured-jackson3/docs/TypeHolderExample.md
deleted file mode 100644
index 9e410c666e44..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/TypeHolderExample.md
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-# TypeHolderExample
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**stringItem** | **String** | | |
-|**numberItem** | **BigDecimal** | | |
-|**floatItem** | **Float** | | |
-|**integerItem** | **Integer** | | |
-|**boolItem** | **Boolean** | | |
-|**arrayItem** | **List<Integer>** | | |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/User.md b/samples/client/petstore/java/rest-assured-jackson3/docs/User.md
deleted file mode 100644
index 08813e4b10b4..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/User.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-# User
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **Long** | | [optional] |
-|**username** | **String** | | [optional] |
-|**firstName** | **String** | | [optional] |
-|**lastName** | **String** | | [optional] |
-|**email** | **String** | | [optional] |
-|**password** | **String** | | [optional] |
-|**phone** | **String** | | [optional] |
-|**userStatus** | **Integer** | User Status | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/UserApi.md b/samples/client/petstore/java/rest-assured-jackson3/docs/UserApi.md
deleted file mode 100644
index 87fb20faa572..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/UserApi.md
+++ /dev/null
@@ -1,342 +0,0 @@
-# UserApi
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**createUser**](UserApi.md#createUser) | **POST** /user | Create user |
-| [**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array |
-| [**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array |
-| [**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user |
-| [**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name |
-| [**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system |
-| [**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session |
-| [**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user |
-
-
-
-# **createUser**
-> createUser(body)
-
-Create user
-
-This can only be done by the logged in user.
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).user();
-
-api.createUser()
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**User**](User.md)| Created user object | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
-# **createUsersWithArrayInput**
-> createUsersWithArrayInput(body)
-
-Creates list of users with given input array
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).user();
-
-api.createUsersWithArrayInput()
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**List<@Valid User>**](User.md)| List of user object | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
-# **createUsersWithListInput**
-> createUsersWithListInput(body)
-
-Creates list of users with given input array
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).user();
-
-api.createUsersWithListInput()
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | [**List<@Valid User>**](User.md)| List of user object | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
-# **deleteUser**
-> deleteUser(username)
-
-Delete user
-
-This can only be done by the logged in user.
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).user();
-
-api.deleteUser()
- .usernamePath(username).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **username** | **String**| The name that needs to be deleted | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
-# **getUserByName**
-> User getUserByName(username)
-
-Get user by user name
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).user();
-
-api.getUserByName()
- .usernamePath(username).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **username** | **String**| The name that needs to be fetched. Use user1 for testing. | |
-
-### Return type
-
-[**User**](User.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **loginUser**
-> String loginUser(username, password)
-
-Logs user into the system
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).user();
-
-api.loginUser()
- .usernameQuery(username)
- .passwordQuery(password).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **username** | **String**| The user name for login | |
-| **password** | **String**| The password for login in clear text | |
-
-### Return type
-
-**String**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-
-# **logoutUser**
-> logoutUser()
-
-Logs out current logged in user session
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).user();
-
-api.logoutUser().execute(r -> r.prettyPeek());
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
-# **updateUser**
-> updateUser(username, body)
-
-Updated user
-
-This can only be done by the logged in user.
-
-### Example
-```java
-// Import classes:
-//import org.openapitools.client.ApiClient;
-//import io.restassured.builder.RequestSpecBuilder;
-//import io.restassured.filter.log.ErrorLoggingFilter;
-
-UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
- () -> new RequestSpecBuilder()
- .setBaseUri("http://petstore.swagger.io:80/v2"))).user();
-
-api.updateUser()
- .usernamePath(username)
- .body(body).execute(r -> r.prettyPeek());
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **username** | **String**| name that need to be deleted | |
-| **body** | [**User**](User.md)| Updated user object | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/docs/XmlItem.md b/samples/client/petstore/java/rest-assured-jackson3/docs/XmlItem.md
deleted file mode 100644
index 349b62bed64e..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/docs/XmlItem.md
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-# XmlItem
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**attributeString** | **String** | | [optional] |
-|**attributeNumber** | **BigDecimal** | | [optional] |
-|**attributeInteger** | **Integer** | | [optional] |
-|**attributeBoolean** | **Boolean** | | [optional] |
-|**wrappedArray** | **List<Integer>** | | [optional] |
-|**nameString** | **String** | | [optional] |
-|**nameNumber** | **BigDecimal** | | [optional] |
-|**nameInteger** | **Integer** | | [optional] |
-|**nameBoolean** | **Boolean** | | [optional] |
-|**nameArray** | **List<Integer>** | | [optional] |
-|**nameWrappedArray** | **List<Integer>** | | [optional] |
-|**prefixString** | **String** | | [optional] |
-|**prefixNumber** | **BigDecimal** | | [optional] |
-|**prefixInteger** | **Integer** | | [optional] |
-|**prefixBoolean** | **Boolean** | | [optional] |
-|**prefixArray** | **List<Integer>** | | [optional] |
-|**prefixWrappedArray** | **List<Integer>** | | [optional] |
-|**namespaceString** | **String** | | [optional] |
-|**namespaceNumber** | **BigDecimal** | | [optional] |
-|**namespaceInteger** | **Integer** | | [optional] |
-|**namespaceBoolean** | **Boolean** | | [optional] |
-|**namespaceArray** | **List<Integer>** | | [optional] |
-|**namespaceWrappedArray** | **List<Integer>** | | [optional] |
-|**prefixNsString** | **String** | | [optional] |
-|**prefixNsNumber** | **BigDecimal** | | [optional] |
-|**prefixNsInteger** | **Integer** | | [optional] |
-|**prefixNsBoolean** | **Boolean** | | [optional] |
-|**prefixNsArray** | **List<Integer>** | | [optional] |
-|**prefixNsWrappedArray** | **List<Integer>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/rest-assured-jackson3/pom.xml b/samples/client/petstore/java/rest-assured-jackson3/pom.xml
index 8357c07af676..566d7f057e78 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/pom.xml
+++ b/samples/client/petstore/java/rest-assured-jackson3/pom.xml
@@ -279,7 +279,7 @@
1.9.0
3.1.6
2.21
- 0.2.11
+ 0.2.12
1.3.5
2.0.2
3.6.0
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ApiClient.java
index b5940d8eae0a..e0aea75a1230 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ApiClient.java
+++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ApiClient.java
@@ -1,6 +1,6 @@
/*
* OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -24,7 +24,7 @@
import static org.openapitools.client.JacksonObjectMapper.jackson;
public class ApiClient {
- public static final String BASE_URI = "http://petstore.swagger.io:80/v2";
+ public static final String BASE_URI = "http://petstore.swagger.io/v2";
protected final Config config;
@@ -36,24 +36,9 @@ public static ApiClient api(Config config) {
return new ApiClient(config);
}
- public AnotherFakeApi anotherFake() {
- return AnotherFakeApi.anotherFake(config.reqSpecSupplier);
- }
- public FakeApi fake() {
- return FakeApi.fake(config.reqSpecSupplier);
- }
- public FakeClassnameTags123Api fakeClassnameTags123() {
- return FakeClassnameTags123Api.fakeClassnameTags123(config.reqSpecSupplier);
- }
public PetApi pet() {
return PetApi.pet(config.reqSpecSupplier);
}
- public StoreApi store() {
- return StoreApi.store(config.reqSpecSupplier);
- }
- public UserApi user() {
- return UserApi.user(config.reqSpecSupplier);
- }
public static class Config {
protected Supplier reqSpecSupplier = () -> new RequestSpecBuilder()
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/BeanValidationException.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/BeanValidationException.java
index 60bd8fc1b2eb..1c27b570a8ae 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/BeanValidationException.java
+++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/BeanValidationException.java
@@ -1,6 +1,6 @@
/*
* OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/JacksonObjectMapper.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/JacksonObjectMapper.java
index 96a1ff56be9f..49c702cd07cd 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/JacksonObjectMapper.java
+++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/JacksonObjectMapper.java
@@ -1,6 +1,6 @@
/*
* OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/RFC3339DateFormat.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/RFC3339DateFormat.java
index 81718bca5b84..8b561d2b254f 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/RFC3339DateFormat.java
+++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/RFC3339DateFormat.java
@@ -1,6 +1,6 @@
/*
* OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ResponseSpecBuilders.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ResponseSpecBuilders.java
index 412baa1bfaa8..d957059a6650 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ResponseSpecBuilders.java
+++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ResponseSpecBuilders.java
@@ -1,6 +1,6 @@
/*
* OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ServerConfiguration.java
index c8951c2cd6a7..d91e95da6ef4 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ServerConfiguration.java
+++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ServerConfiguration.java
@@ -1,6 +1,6 @@
/*
* OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ServerVariable.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ServerVariable.java
index d9a92f7194cf..3ee60faf38fc 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ServerVariable.java
+++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/ServerVariable.java
@@ -1,6 +1,6 @@
/*
* OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
deleted file mode 100644
index 5b2baa1a9a43..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
- *
- * The version of the OpenAPI document: 1.0.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package org.openapitools.client.api;
-
-import org.openapitools.client.model.Client;
-import java.util.UUID;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import io.restassured.RestAssured;
-import io.restassured.builder.RequestSpecBuilder;
-import io.restassured.builder.ResponseSpecBuilder;
-import io.restassured.common.mapper.TypeRef;
-import io.restassured.http.Method;
-import io.restassured.response.Response;
-
-import javax.validation.constraints.*;
-import javax.validation.Valid;
-
-import java.lang.reflect.Type;
-import java.util.function.Consumer;
-import java.util.function.Function;
-import java.util.function.Supplier;
-import static io.restassured.http.Method.*;
-
-public class AnotherFakeApi {
-
- private Supplier reqSpecSupplier;
- private Consumer reqSpecCustomizer;
-
- private AnotherFakeApi(Supplier reqSpecSupplier) {
- this.reqSpecSupplier = reqSpecSupplier;
- }
-
- public static AnotherFakeApi anotherFake(Supplier reqSpecSupplier) {
- return new AnotherFakeApi(reqSpecSupplier);
- }
-
- private RequestSpecBuilder createReqSpec() {
- RequestSpecBuilder reqSpec = reqSpecSupplier.get();
- if(reqSpecCustomizer != null) {
- reqSpecCustomizer.accept(reqSpec);
- }
- return reqSpec;
- }
-
- public List getAllOperations() {
- return Arrays.asList(
- call123testSpecialTags()
- );
- }
-
- public Call123testSpecialTagsOper call123testSpecialTags() {
- return new Call123testSpecialTagsOper(createReqSpec());
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return api
- */
- public AnotherFakeApi reqSpec(Consumer reqSpecCustomizer) {
- this.reqSpecCustomizer = reqSpecCustomizer;
- return this;
- }
-
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- *
- * @see #uuidTestHeader to test uuid example value (required)
- * @see #body client model (required)
- * return Client
- */
- public static class Call123testSpecialTagsOper implements Oper {
-
- public static final Method REQ_METHOD = PATCH;
- public static final String REQ_URI = "/another-fake/dummy";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public Call123testSpecialTagsOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/json");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * PATCH /another-fake/dummy
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * PATCH /another-fake/dummy
- * @param handler handler
- * @return Client
- */
- public Client executeAs(Function handler) {
- TypeRef type = new TypeRef(){};
- return execute(handler).as(type);
- }
-
- /**
- * @param body (Client) client model (required)
- * @return operation
- */
- public Call123testSpecialTagsOper body(@javax.annotation.Nonnull Client body) {
- reqSpec.setBody(body);
- return this;
- }
-
- public static final String UUID_TEST_HEADER = "uuid_test";
-
- /**
- * @param uuidTest (UUID) to test uuid example value (required)
- * @return operation
- */
- public Call123testSpecialTagsOper uuidTestHeader(String uuidTest) {
- reqSpec.addHeader(UUID_TEST_HEADER, uuidTest);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public Call123testSpecialTagsOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public Call123testSpecialTagsOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
-}
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/FakeApi.java
deleted file mode 100644
index f7277688dfad..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/FakeApi.java
+++ /dev/null
@@ -1,1442 +0,0 @@
-/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
- *
- * The version of the OpenAPI document: 1.0.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package org.openapitools.client.api;
-
-import java.math.BigDecimal;
-import org.openapitools.client.model.Client;
-import java.io.File;
-import org.openapitools.client.model.FileSchemaTestClass;
-import java.time.LocalDate;
-import java.time.OffsetDateTime;
-import org.openapitools.client.model.OuterComposite;
-import org.openapitools.client.model.User;
-import org.openapitools.client.model.XmlItem;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import io.restassured.RestAssured;
-import io.restassured.builder.RequestSpecBuilder;
-import io.restassured.builder.ResponseSpecBuilder;
-import io.restassured.common.mapper.TypeRef;
-import io.restassured.http.Method;
-import io.restassured.response.Response;
-
-import javax.validation.constraints.*;
-import javax.validation.Valid;
-
-import java.lang.reflect.Type;
-import java.util.function.Consumer;
-import java.util.function.Function;
-import java.util.function.Supplier;
-import static io.restassured.http.Method.*;
-
-public class FakeApi {
-
- private Supplier reqSpecSupplier;
- private Consumer reqSpecCustomizer;
-
- private FakeApi(Supplier reqSpecSupplier) {
- this.reqSpecSupplier = reqSpecSupplier;
- }
-
- public static FakeApi fake(Supplier reqSpecSupplier) {
- return new FakeApi(reqSpecSupplier);
- }
-
- private RequestSpecBuilder createReqSpec() {
- RequestSpecBuilder reqSpec = reqSpecSupplier.get();
- if(reqSpecCustomizer != null) {
- reqSpecCustomizer.accept(reqSpec);
- }
- return reqSpec;
- }
-
- public List getAllOperations() {
- return Arrays.asList(
- createXmlItem(),
- fakeOuterBooleanSerialize(),
- fakeOuterCompositeSerialize(),
- fakeOuterNumberSerialize(),
- fakeOuterStringSerialize(),
- testBodyWithFileSchema(),
- testBodyWithQueryParams(),
- testClientModel(),
- testEndpointParameters(),
- testEnumParameters(),
- testGroupParameters(),
- testInlineAdditionalProperties(),
- testJsonFormData(),
- testQueryParameterCollectionFormat()
- );
- }
-
- public CreateXmlItemOper createXmlItem() {
- return new CreateXmlItemOper(createReqSpec());
- }
-
- public FakeOuterBooleanSerializeOper fakeOuterBooleanSerialize() {
- return new FakeOuterBooleanSerializeOper(createReqSpec());
- }
-
- public FakeOuterCompositeSerializeOper fakeOuterCompositeSerialize() {
- return new FakeOuterCompositeSerializeOper(createReqSpec());
- }
-
- public FakeOuterNumberSerializeOper fakeOuterNumberSerialize() {
- return new FakeOuterNumberSerializeOper(createReqSpec());
- }
-
- public FakeOuterStringSerializeOper fakeOuterStringSerialize() {
- return new FakeOuterStringSerializeOper(createReqSpec());
- }
-
- public TestBodyWithFileSchemaOper testBodyWithFileSchema() {
- return new TestBodyWithFileSchemaOper(createReqSpec());
- }
-
- public TestBodyWithQueryParamsOper testBodyWithQueryParams() {
- return new TestBodyWithQueryParamsOper(createReqSpec());
- }
-
- public TestClientModelOper testClientModel() {
- return new TestClientModelOper(createReqSpec());
- }
-
- public TestEndpointParametersOper testEndpointParameters() {
- return new TestEndpointParametersOper(createReqSpec());
- }
-
- public TestEnumParametersOper testEnumParameters() {
- return new TestEnumParametersOper(createReqSpec());
- }
-
- public TestGroupParametersOper testGroupParameters() {
- return new TestGroupParametersOper(createReqSpec());
- }
-
- public TestInlineAdditionalPropertiesOper testInlineAdditionalProperties() {
- return new TestInlineAdditionalPropertiesOper(createReqSpec());
- }
-
- public TestJsonFormDataOper testJsonFormData() {
- return new TestJsonFormDataOper(createReqSpec());
- }
-
- public TestQueryParameterCollectionFormatOper testQueryParameterCollectionFormat() {
- return new TestQueryParameterCollectionFormatOper(createReqSpec());
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return api
- */
- public FakeApi reqSpec(Consumer reqSpecCustomizer) {
- this.reqSpecCustomizer = reqSpecCustomizer;
- return this;
- }
-
- /**
- * creates an XmlItem
- * this route creates an XmlItem
- *
- * @see #body XmlItem Body (required)
- */
- public static class CreateXmlItemOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/fake/create_xml_item";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public CreateXmlItemOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/xml");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /fake/create_xml_item
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * @param xmlItem (XmlItem) XmlItem Body (required)
- * @return operation
- */
- public CreateXmlItemOper body(@javax.annotation.Nonnull XmlItem xmlItem) {
- reqSpec.setBody(xmlItem);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public CreateXmlItemOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public CreateXmlItemOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- *
- * Test serialization of outer boolean types
- *
- * @see #body Input boolean as post body (optional)
- * return Boolean
- */
- public static class FakeOuterBooleanSerializeOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/fake/outer/boolean";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public FakeOuterBooleanSerializeOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("*/*");
- reqSpec.setAccept("*/*");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /fake/outer/boolean
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * POST /fake/outer/boolean
- * @param handler handler
- * @return Boolean
- */
- public Boolean executeAs(Function handler) {
- TypeRef type = new TypeRef(){};
- return execute(handler).as(type);
- }
-
- /**
- * @param body (Boolean) Input boolean as post body (optional)
- * @return operation
- */
- public FakeOuterBooleanSerializeOper body(@javax.annotation.Nullable Boolean body) {
- reqSpec.setBody(body);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public FakeOuterBooleanSerializeOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public FakeOuterBooleanSerializeOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- *
- * Test serialization of object with outer number type
- *
- * @see #body Input composite as post body (optional)
- * return OuterComposite
- */
- public static class FakeOuterCompositeSerializeOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/fake/outer/composite";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public FakeOuterCompositeSerializeOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("*/*");
- reqSpec.setAccept("*/*");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /fake/outer/composite
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * POST /fake/outer/composite
- * @param handler handler
- * @return OuterComposite
- */
- public OuterComposite executeAs(Function handler) {
- TypeRef type = new TypeRef(){};
- return execute(handler).as(type);
- }
-
- /**
- * @param body (OuterComposite) Input composite as post body (optional)
- * @return operation
- */
- public FakeOuterCompositeSerializeOper body(@javax.annotation.Nullable OuterComposite body) {
- reqSpec.setBody(body);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public FakeOuterCompositeSerializeOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public FakeOuterCompositeSerializeOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- *
- * Test serialization of outer number types
- *
- * @see #body Input number as post body (optional)
- * return BigDecimal
- */
- public static class FakeOuterNumberSerializeOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/fake/outer/number";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public FakeOuterNumberSerializeOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("*/*");
- reqSpec.setAccept("*/*");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /fake/outer/number
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * POST /fake/outer/number
- * @param handler handler
- * @return BigDecimal
- */
- public BigDecimal executeAs(Function handler) {
- TypeRef type = new TypeRef(){};
- return execute(handler).as(type);
- }
-
- /**
- * @param body (BigDecimal) Input number as post body (optional)
- * @return operation
- */
- public FakeOuterNumberSerializeOper body(@javax.annotation.Nullable BigDecimal body) {
- reqSpec.setBody(body);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public FakeOuterNumberSerializeOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public FakeOuterNumberSerializeOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- *
- * Test serialization of outer string types
- *
- * @see #body Input string as post body (optional)
- * return String
- */
- public static class FakeOuterStringSerializeOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/fake/outer/string";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public FakeOuterStringSerializeOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("*/*");
- reqSpec.setAccept("*/*");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /fake/outer/string
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * POST /fake/outer/string
- * @param handler handler
- * @return String
- */
- public String executeAs(Function handler) {
- TypeRef type = new TypeRef(){};
- return execute(handler).as(type);
- }
-
- /**
- * @param body (String) Input string as post body (optional)
- * @return operation
- */
- public FakeOuterStringSerializeOper body(@javax.annotation.Nullable String body) {
- reqSpec.setBody(body);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public FakeOuterStringSerializeOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public FakeOuterStringSerializeOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- *
- * For this test, the body for this request much reference a schema named `File`.
- *
- * @see #body (required)
- */
- public static class TestBodyWithFileSchemaOper implements Oper {
-
- public static final Method REQ_METHOD = PUT;
- public static final String REQ_URI = "/fake/body-with-file-schema";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestBodyWithFileSchemaOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/json");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * PUT /fake/body-with-file-schema
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * @param body (FileSchemaTestClass) (required)
- * @return operation
- */
- public TestBodyWithFileSchemaOper body(@javax.annotation.Nonnull FileSchemaTestClass body) {
- reqSpec.setBody(body);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestBodyWithFileSchemaOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestBodyWithFileSchemaOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- *
- *
- *
- * @see #queryQuery (required)
- * @see #body (required)
- */
- public static class TestBodyWithQueryParamsOper implements Oper {
-
- public static final Method REQ_METHOD = PUT;
- public static final String REQ_URI = "/fake/body-with-query-params";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestBodyWithQueryParamsOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/json");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * PUT /fake/body-with-query-params
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * @param body (User) (required)
- * @return operation
- */
- public TestBodyWithQueryParamsOper body(@javax.annotation.Nonnull User body) {
- reqSpec.setBody(body);
- return this;
- }
-
- public static final String QUERY_QUERY = "query";
-
- /**
- * @param query (String) (required)
- * @return operation
- */
- public TestBodyWithQueryParamsOper queryQuery(Object... query) {
- reqSpec.addQueryParam(QUERY_QUERY, query);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestBodyWithQueryParamsOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestBodyWithQueryParamsOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * To test \"client\" model
- * To test \"client\" model
- *
- * @see #body client model (required)
- * return Client
- */
- public static class TestClientModelOper implements Oper {
-
- public static final Method REQ_METHOD = PATCH;
- public static final String REQ_URI = "/fake";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestClientModelOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/json");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * PATCH /fake
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * PATCH /fake
- * @param handler handler
- * @return Client
- */
- public Client executeAs(Function handler) {
- TypeRef type = new TypeRef(){};
- return execute(handler).as(type);
- }
-
- /**
- * @param body (Client) client model (required)
- * @return operation
- */
- public TestClientModelOper body(@javax.annotation.Nonnull Client body) {
- reqSpec.setBody(body);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestClientModelOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestClientModelOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- *
- * @see #numberForm None (required)
- * @see #_doubleForm None (required)
- * @see #patternWithoutDelimiterForm None (required)
- * @see #_byteForm None (required)
- * @see #integerForm None (optional)
- * @see #int32Form None (optional)
- * @see #int64Form None (optional)
- * @see #_floatForm None (optional)
- * @see #stringForm None (optional)
- * @see #binaryMultiPart None (optional)
- * @see #dateForm None (optional)
- * @see #dateTimeForm None (optional)
- * @see #passwordForm None (optional)
- * @see #paramCallbackForm None (optional)
- */
- public static class TestEndpointParametersOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/fake";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestEndpointParametersOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/x-www-form-urlencoded");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /fake
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- public static final String INTEGER_FORM = "integer";
-
- /**
- * @param integer (Integer) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper integerForm(Object... integer) {
- reqSpec.addFormParam(INTEGER_FORM, integer);
- return this;
- }
-
- public static final String INT32_FORM = "int32";
-
- /**
- * @param int32 (Integer) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper int32Form(Object... int32) {
- reqSpec.addFormParam(INT32_FORM, int32);
- return this;
- }
-
- public static final String INT64_FORM = "int64";
-
- /**
- * @param int64 (Long) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper int64Form(Object... int64) {
- reqSpec.addFormParam(INT64_FORM, int64);
- return this;
- }
-
- public static final String NUMBER_FORM = "number";
-
- /**
- * @param number (BigDecimal) None (required)
- * @return operation
- */
- public TestEndpointParametersOper numberForm(Object... number) {
- reqSpec.addFormParam(NUMBER_FORM, number);
- return this;
- }
-
- public static final String _FLOAT_FORM = "float";
-
- /**
- * @param _float (Float) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper _floatForm(Object... _float) {
- reqSpec.addFormParam(_FLOAT_FORM, _float);
- return this;
- }
-
- public static final String _DOUBLE_FORM = "double";
-
- /**
- * @param _double (Double) None (required)
- * @return operation
- */
- public TestEndpointParametersOper _doubleForm(Object... _double) {
- reqSpec.addFormParam(_DOUBLE_FORM, _double);
- return this;
- }
-
- public static final String STRING_FORM = "string";
-
- /**
- * @param string (String) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper stringForm(Object... string) {
- reqSpec.addFormParam(STRING_FORM, string);
- return this;
- }
-
- public static final String PATTERN_WITHOUT_DELIMITER_FORM = "pattern_without_delimiter";
-
- /**
- * @param patternWithoutDelimiter (String) None (required)
- * @return operation
- */
- public TestEndpointParametersOper patternWithoutDelimiterForm(Object... patternWithoutDelimiter) {
- reqSpec.addFormParam(PATTERN_WITHOUT_DELIMITER_FORM, patternWithoutDelimiter);
- return this;
- }
-
- public static final String _BYTE_FORM = "byte";
-
- /**
- * @param _byte (byte[]) None (required)
- * @return operation
- */
- public TestEndpointParametersOper _byteForm(Object... _byte) {
- reqSpec.addFormParam(_BYTE_FORM, _byte);
- return this;
- }
-
- public static final String DATE_FORM = "date";
-
- /**
- * @param date (LocalDate) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper dateForm(Object... date) {
- reqSpec.addFormParam(DATE_FORM, date);
- return this;
- }
-
- public static final String DATE_TIME_FORM = "dateTime";
-
- /**
- * @param dateTime (OffsetDateTime) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper dateTimeForm(Object... dateTime) {
- reqSpec.addFormParam(DATE_TIME_FORM, dateTime);
- return this;
- }
-
- public static final String PASSWORD_FORM = "password";
-
- /**
- * @param password (String) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper passwordForm(Object... password) {
- reqSpec.addFormParam(PASSWORD_FORM, password);
- return this;
- }
-
- public static final String PARAM_CALLBACK_FORM = "callback";
-
- /**
- * @param paramCallback (String) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper paramCallbackForm(Object... paramCallback) {
- reqSpec.addFormParam(PARAM_CALLBACK_FORM, paramCallback);
- return this;
- }
-
- /**
- * It will assume that the control name is file and the <content-type> is <application/octet-stream>
- * @see #reqSpec for customise
- * @param binary (File) None (optional)
- * @return operation
- */
- public TestEndpointParametersOper binaryMultiPart(@javax.annotation.Nullable File binary) {
- reqSpec.addMultiPart(binary);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestEndpointParametersOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestEndpointParametersOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * To test enum parameters
- * To test enum parameters
- *
- * @see #enumHeaderStringArrayHeader Header parameter enum test (string array) (optional)
- * @see #enumHeaderStringHeader Header parameter enum test (string) (optional, default to -efg)
- * @see #enumQueryStringArrayQuery Query parameter enum test (string array) (optional)
- * @see #enumQueryStringQuery Query parameter enum test (string) (optional, default to -efg)
- * @see #enumQueryIntegerQuery Query parameter enum test (double) (optional)
- * @see #enumQueryDoubleQuery Query parameter enum test (double) (optional)
- * @see #enumFormStringArrayForm Form parameter enum test (string array) (optional, default to $)
- * @see #enumFormStringForm Form parameter enum test (string) (optional, default to -efg)
- */
- public static class TestEnumParametersOper implements Oper {
-
- public static final Method REQ_METHOD = GET;
- public static final String REQ_URI = "/fake";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestEnumParametersOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/x-www-form-urlencoded");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * GET /fake
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- public static final String ENUM_HEADER_STRING_ARRAY_HEADER = "enum_header_string_array";
-
- /**
- * @param enumHeaderStringArray (List<String>) Header parameter enum test (string array) (optional)
- * @return operation
- */
- public TestEnumParametersOper enumHeaderStringArrayHeader(String enumHeaderStringArray) {
- reqSpec.addHeader(ENUM_HEADER_STRING_ARRAY_HEADER, enumHeaderStringArray);
- return this;
- }
-
- public static final String ENUM_HEADER_STRING_HEADER = "enum_header_string";
-
- /**
- * @param enumHeaderString (String) Header parameter enum test (string) (optional, default to -efg)
- * @return operation
- */
- public TestEnumParametersOper enumHeaderStringHeader(String enumHeaderString) {
- reqSpec.addHeader(ENUM_HEADER_STRING_HEADER, enumHeaderString);
- return this;
- }
-
- public static final String ENUM_QUERY_STRING_ARRAY_QUERY = "enum_query_string_array";
-
- /**
- * @param enumQueryStringArray (List<String>) Query parameter enum test (string array) (optional)
- * @return operation
- */
- public TestEnumParametersOper enumQueryStringArrayQuery(Object... enumQueryStringArray) {
- reqSpec.addQueryParam(ENUM_QUERY_STRING_ARRAY_QUERY, enumQueryStringArray);
- return this;
- }
-
- public static final String ENUM_QUERY_STRING_QUERY = "enum_query_string";
-
- /**
- * @param enumQueryString (String) Query parameter enum test (string) (optional, default to -efg)
- * @return operation
- */
- public TestEnumParametersOper enumQueryStringQuery(Object... enumQueryString) {
- reqSpec.addQueryParam(ENUM_QUERY_STRING_QUERY, enumQueryString);
- return this;
- }
-
- public static final String ENUM_QUERY_INTEGER_QUERY = "enum_query_integer";
-
- /**
- * @param enumQueryInteger (Integer) Query parameter enum test (double) (optional)
- * @return operation
- */
- public TestEnumParametersOper enumQueryIntegerQuery(Object... enumQueryInteger) {
- reqSpec.addQueryParam(ENUM_QUERY_INTEGER_QUERY, enumQueryInteger);
- return this;
- }
-
- public static final String ENUM_QUERY_DOUBLE_QUERY = "enum_query_double";
-
- /**
- * @param enumQueryDouble (Double) Query parameter enum test (double) (optional)
- * @return operation
- */
- public TestEnumParametersOper enumQueryDoubleQuery(Object... enumQueryDouble) {
- reqSpec.addQueryParam(ENUM_QUERY_DOUBLE_QUERY, enumQueryDouble);
- return this;
- }
-
- public static final String ENUM_FORM_STRING_ARRAY_FORM = "enum_form_string_array";
-
- /**
- * @param enumFormStringArray (List<String>) Form parameter enum test (string array) (optional, default to $)
- * @return operation
- */
- public TestEnumParametersOper enumFormStringArrayForm(Object... enumFormStringArray) {
- reqSpec.addFormParam(ENUM_FORM_STRING_ARRAY_FORM, enumFormStringArray);
- return this;
- }
-
- public static final String ENUM_FORM_STRING_FORM = "enum_form_string";
-
- /**
- * @param enumFormString (String) Form parameter enum test (string) (optional, default to -efg)
- * @return operation
- */
- public TestEnumParametersOper enumFormStringForm(Object... enumFormString) {
- reqSpec.addFormParam(ENUM_FORM_STRING_FORM, enumFormString);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestEnumParametersOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestEnumParametersOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * Fake endpoint to test group parameters (optional)
- * Fake endpoint to test group parameters (optional)
- *
- * @see #requiredStringGroupQuery Required String in group parameters (required)
- * @see #requiredBooleanGroupHeader Required Boolean in group parameters (required)
- * @see #requiredInt64GroupQuery Required Integer in group parameters (required)
- * @see #stringGroupQuery String in group parameters (optional)
- * @see #booleanGroupHeader Boolean in group parameters (optional)
- * @see #int64GroupQuery Integer in group parameters (optional)
- */
- public static class TestGroupParametersOper implements Oper {
-
- public static final Method REQ_METHOD = DELETE;
- public static final String REQ_URI = "/fake";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestGroupParametersOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * DELETE /fake
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- public static final String REQUIRED_BOOLEAN_GROUP_HEADER = "required_boolean_group";
-
- /**
- * @param requiredBooleanGroup (Boolean) Required Boolean in group parameters (required)
- * @return operation
- */
- public TestGroupParametersOper requiredBooleanGroupHeader(String requiredBooleanGroup) {
- reqSpec.addHeader(REQUIRED_BOOLEAN_GROUP_HEADER, requiredBooleanGroup);
- return this;
- }
-
- public static final String BOOLEAN_GROUP_HEADER = "boolean_group";
-
- /**
- * @param booleanGroup (Boolean) Boolean in group parameters (optional)
- * @return operation
- */
- public TestGroupParametersOper booleanGroupHeader(String booleanGroup) {
- reqSpec.addHeader(BOOLEAN_GROUP_HEADER, booleanGroup);
- return this;
- }
-
- public static final String REQUIRED_STRING_GROUP_QUERY = "required_string_group";
-
- /**
- * @param requiredStringGroup (Integer) Required String in group parameters (required)
- * @return operation
- */
- public TestGroupParametersOper requiredStringGroupQuery(Object... requiredStringGroup) {
- reqSpec.addQueryParam(REQUIRED_STRING_GROUP_QUERY, requiredStringGroup);
- return this;
- }
-
- public static final String REQUIRED_INT64_GROUP_QUERY = "required_int64_group";
-
- /**
- * @param requiredInt64Group (Long) Required Integer in group parameters (required)
- * @return operation
- */
- public TestGroupParametersOper requiredInt64GroupQuery(Object... requiredInt64Group) {
- reqSpec.addQueryParam(REQUIRED_INT64_GROUP_QUERY, requiredInt64Group);
- return this;
- }
-
- public static final String STRING_GROUP_QUERY = "string_group";
-
- /**
- * @param stringGroup (Integer) String in group parameters (optional)
- * @return operation
- */
- public TestGroupParametersOper stringGroupQuery(Object... stringGroup) {
- reqSpec.addQueryParam(STRING_GROUP_QUERY, stringGroup);
- return this;
- }
-
- public static final String INT64_GROUP_QUERY = "int64_group";
-
- /**
- * @param int64Group (Long) Integer in group parameters (optional)
- * @return operation
- */
- public TestGroupParametersOper int64GroupQuery(Object... int64Group) {
- reqSpec.addQueryParam(INT64_GROUP_QUERY, int64Group);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestGroupParametersOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestGroupParametersOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * test inline additionalProperties
- *
- *
- * @see #body request body (required)
- */
- public static class TestInlineAdditionalPropertiesOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/fake/inline-additionalProperties";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestInlineAdditionalPropertiesOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/json");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /fake/inline-additionalProperties
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * @param param (Map<String, String>) request body (required)
- * @return operation
- */
- public TestInlineAdditionalPropertiesOper body(@javax.annotation.Nonnull Map param) {
- reqSpec.setBody(param);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestInlineAdditionalPropertiesOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestInlineAdditionalPropertiesOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * test json serialization of form data
- *
- *
- * @see #paramForm field1 (required)
- * @see #param2Form field2 (required)
- */
- public static class TestJsonFormDataOper implements Oper {
-
- public static final Method REQ_METHOD = GET;
- public static final String REQ_URI = "/fake/jsonFormData";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestJsonFormDataOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/x-www-form-urlencoded");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * GET /fake/jsonFormData
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- public static final String PARAM_FORM = "param";
-
- /**
- * @param param (String) field1 (required)
- * @return operation
- */
- public TestJsonFormDataOper paramForm(Object... param) {
- reqSpec.addFormParam(PARAM_FORM, param);
- return this;
- }
-
- public static final String PARAM2_FORM = "param2";
-
- /**
- * @param param2 (String) field2 (required)
- * @return operation
- */
- public TestJsonFormDataOper param2Form(Object... param2) {
- reqSpec.addFormParam(PARAM2_FORM, param2);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestJsonFormDataOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestJsonFormDataOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- *
- * To test the collection format in query parameters
- *
- * @see #pipeQuery (required)
- * @see #ioutilQuery (required)
- * @see #httpQuery (required)
- * @see #urlQuery (required)
- * @see #contextQuery (required)
- */
- public static class TestQueryParameterCollectionFormatOper implements Oper {
-
- public static final Method REQ_METHOD = PUT;
- public static final String REQ_URI = "/fake/test-query-parameters";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestQueryParameterCollectionFormatOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * PUT /fake/test-query-parameters
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- public static final String PIPE_QUERY = "pipe";
-
- /**
- * @param pipe (List<String>) (required)
- * @return operation
- */
- public TestQueryParameterCollectionFormatOper pipeQuery(Object... pipe) {
- reqSpec.addQueryParam(PIPE_QUERY, pipe);
- return this;
- }
-
- public static final String IOUTIL_QUERY = "ioutil";
-
- /**
- * @param ioutil (List<String>) (required)
- * @return operation
- */
- public TestQueryParameterCollectionFormatOper ioutilQuery(Object... ioutil) {
- reqSpec.addQueryParam(IOUTIL_QUERY, ioutil);
- return this;
- }
-
- public static final String HTTP_QUERY = "http";
-
- /**
- * @param http (List<String>) (required)
- * @return operation
- */
- public TestQueryParameterCollectionFormatOper httpQuery(Object... http) {
- reqSpec.addQueryParam(HTTP_QUERY, http);
- return this;
- }
-
- public static final String URL_QUERY = "url";
-
- /**
- * @param url (List<String>) (required)
- * @return operation
- */
- public TestQueryParameterCollectionFormatOper urlQuery(Object... url) {
- reqSpec.addQueryParam(URL_QUERY, url);
- return this;
- }
-
- public static final String CONTEXT_QUERY = "context";
-
- /**
- * @param context (List<String>) (required)
- * @return operation
- */
- public TestQueryParameterCollectionFormatOper contextQuery(Object... context) {
- reqSpec.addQueryParam(CONTEXT_QUERY, context);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestQueryParameterCollectionFormatOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestQueryParameterCollectionFormatOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
-}
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
deleted file mode 100644
index 27c69c24b652..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
- *
- * The version of the OpenAPI document: 1.0.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package org.openapitools.client.api;
-
-import org.openapitools.client.model.Client;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import io.restassured.RestAssured;
-import io.restassured.builder.RequestSpecBuilder;
-import io.restassured.builder.ResponseSpecBuilder;
-import io.restassured.common.mapper.TypeRef;
-import io.restassured.http.Method;
-import io.restassured.response.Response;
-
-import javax.validation.constraints.*;
-import javax.validation.Valid;
-
-import java.lang.reflect.Type;
-import java.util.function.Consumer;
-import java.util.function.Function;
-import java.util.function.Supplier;
-import static io.restassured.http.Method.*;
-
-public class FakeClassnameTags123Api {
-
- private Supplier reqSpecSupplier;
- private Consumer reqSpecCustomizer;
-
- private FakeClassnameTags123Api(Supplier reqSpecSupplier) {
- this.reqSpecSupplier = reqSpecSupplier;
- }
-
- public static FakeClassnameTags123Api fakeClassnameTags123(Supplier reqSpecSupplier) {
- return new FakeClassnameTags123Api(reqSpecSupplier);
- }
-
- private RequestSpecBuilder createReqSpec() {
- RequestSpecBuilder reqSpec = reqSpecSupplier.get();
- if(reqSpecCustomizer != null) {
- reqSpecCustomizer.accept(reqSpec);
- }
- return reqSpec;
- }
-
- public List getAllOperations() {
- return Arrays.asList(
- testClassname()
- );
- }
-
- public TestClassnameOper testClassname() {
- return new TestClassnameOper(createReqSpec());
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return api
- */
- public FakeClassnameTags123Api reqSpec(Consumer reqSpecCustomizer) {
- this.reqSpecCustomizer = reqSpecCustomizer;
- return this;
- }
-
- /**
- * To test class name in snake case
- * To test class name in snake case
- *
- * @see #body client model (required)
- * return Client
- */
- public static class TestClassnameOper implements Oper {
-
- public static final Method REQ_METHOD = PATCH;
- public static final String REQ_URI = "/fake_classname_test";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public TestClassnameOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/json");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * PATCH /fake_classname_test
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * PATCH /fake_classname_test
- * @param handler handler
- * @return Client
- */
- public Client executeAs(Function handler) {
- TypeRef type = new TypeRef(){};
- return execute(handler).as(type);
- }
-
- /**
- * @param body (Client) client model (required)
- * @return operation
- */
- public TestClassnameOper body(@javax.annotation.Nonnull Client body) {
- reqSpec.setBody(body);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public TestClassnameOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public TestClassnameOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
-}
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/Oper.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/Oper.java
index d9a11e714666..11659e865ada 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/Oper.java
+++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/Oper.java
@@ -1,6 +1,6 @@
/*
* OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/PetApi.java
index a009d95c18d0..2a469018dd70 100644
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/PetApi.java
+++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/PetApi.java
@@ -1,6 +1,6 @@
/*
* OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -13,10 +13,7 @@
package org.openapitools.client.api;
-import java.io.File;
-import org.openapitools.client.model.ModelApiResponse;
import org.openapitools.client.model.Pet;
-import java.util.Set;
import java.util.ArrayList;
import java.util.Arrays;
@@ -62,15 +59,7 @@ private RequestSpecBuilder createReqSpec() {
public List getAllOperations() {
return Arrays.asList(
- addPet(),
- deletePet(),
- findPetsByStatus(),
- findPetsByTags(),
- getPetById(),
- updatePet(),
- updatePetWithForm(),
- uploadFile(),
- uploadFileWithRequiredFile()
+ addPet()
);
}
@@ -78,39 +67,6 @@ public AddPetOper addPet() {
return new AddPetOper(createReqSpec());
}
- public DeletePetOper deletePet() {
- return new DeletePetOper(createReqSpec());
- }
-
- public FindPetsByStatusOper findPetsByStatus() {
- return new FindPetsByStatusOper(createReqSpec());
- }
-
- @Deprecated
- public FindPetsByTagsOper findPetsByTags() {
- return new FindPetsByTagsOper(createReqSpec());
- }
-
- public GetPetByIdOper getPetById() {
- return new GetPetByIdOper(createReqSpec());
- }
-
- public UpdatePetOper updatePet() {
- return new UpdatePetOper(createReqSpec());
- }
-
- public UpdatePetWithFormOper updatePetWithForm() {
- return new UpdatePetWithFormOper(createReqSpec());
- }
-
- public UploadFileOper uploadFile() {
- return new UploadFileOper(createReqSpec());
- }
-
- public UploadFileWithRequiredFileOper uploadFileWithRequiredFile() {
- return new UploadFileWithRequiredFileOper(createReqSpec());
- }
-
/**
* Customize request specification
* @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
@@ -126,6 +82,7 @@ public PetApi reqSpec(Consumer reqSpecCustomizer) {
*
*
* @see #body Pet object that needs to be added to the store (required)
+ * return Pet
*/
public static class AddPetOper implements Oper {
@@ -138,295 +95,12 @@ public static class AddPetOper implements Oper {
public AddPetOper(RequestSpecBuilder reqSpec) {
this.reqSpec = reqSpec;
reqSpec.setContentType("application/json");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /pet
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * @param body (Pet) Pet object that needs to be added to the store (required)
- * @return operation
- */
- public AddPetOper body(@javax.annotation.Nonnull Pet body) {
- reqSpec.setBody(body);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public AddPetOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public AddPetOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * Deletes a pet
- *
- *
- * @see #petIdPath Pet id to delete (required)
- * @see #apiKeyHeader (optional)
- */
- public static class DeletePetOper implements Oper {
-
- public static final Method REQ_METHOD = DELETE;
- public static final String REQ_URI = "/pet/{petId}";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public DeletePetOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * DELETE /pet/{petId}
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- public static final String API_KEY_HEADER = "api_key";
-
- /**
- * @param apiKey (String) (optional)
- * @return operation
- */
- public DeletePetOper apiKeyHeader(String apiKey) {
- reqSpec.addHeader(API_KEY_HEADER, apiKey);
- return this;
- }
-
- public static final String PET_ID_PATH = "petId";
-
- /**
- * @param petId (Long) Pet id to delete (required)
- * @return operation
- */
- public DeletePetOper petIdPath(Object petId) {
- reqSpec.addPathParam(PET_ID_PATH, petId);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public DeletePetOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public DeletePetOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * Finds Pets by status
- * Multiple status values can be provided with comma separated strings
- *
- * @see #statusQuery Status values that need to be considered for filter (required)
- * return List<Pet>
- */
- public static class FindPetsByStatusOper implements Oper {
-
- public static final Method REQ_METHOD = GET;
- public static final String REQ_URI = "/pet/findByStatus";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public FindPetsByStatusOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setAccept("application/json,application/xml");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * GET /pet/findByStatus
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * GET /pet/findByStatus
- * @param handler handler
- * @return List<Pet>
- */
- public List executeAs(Function handler) {
- TypeRef> type = new TypeRef>(){};
- return execute(handler).as(type);
- }
-
- public static final String STATUS_QUERY = "status";
-
- /**
- * @param status (List<String>) Status values that need to be considered for filter (required)
- * @return operation
- */
- public FindPetsByStatusOper statusQuery(Object... status) {
- reqSpec.addQueryParam(STATUS_QUERY, status);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public FindPetsByStatusOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public FindPetsByStatusOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * Finds Pets by tags
- * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- *
- * @see #tagsQuery Tags to filter by (required)
- * return Set<Pet>
- * @deprecated
- */
- @Deprecated
- public static class FindPetsByTagsOper implements Oper {
-
- public static final Method REQ_METHOD = GET;
- public static final String REQ_URI = "/pet/findByTags";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public FindPetsByTagsOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
reqSpec.setAccept("application/json,application/xml");
this.respSpec = new ResponseSpecBuilder();
}
/**
- * GET /pet/findByTags
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * GET /pet/findByTags
- * @param handler handler
- * @return Set<Pet>
- */
- public Set executeAs(Function handler) {
- TypeRef> type = new TypeRef>(){};
- return execute(handler).as(type);
- }
-
- public static final String TAGS_QUERY = "tags";
-
- /**
- * @param tags (Set<String>) Tags to filter by (required)
- * @return operation
- */
- public FindPetsByTagsOper tagsQuery(Object... tags) {
- reqSpec.addQueryParam(TAGS_QUERY, tags);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public FindPetsByTagsOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public FindPetsByTagsOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * Find pet by ID
- * Returns a single pet
- *
- * @see #petIdPath ID of pet to return (required)
- * return Pet
- */
- public static class GetPetByIdOper implements Oper {
-
- public static final Method REQ_METHOD = GET;
- public static final String REQ_URI = "/pet/{petId}";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public GetPetByIdOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setAccept("application/json,application/xml");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * GET /pet/{petId}
+ * POST /pet
* @param handler handler
* @param type
* @return type
@@ -437,7 +111,7 @@ public T execute(Function handler) {
}
/**
- * GET /pet/{petId}
+ * POST /pet
* @param handler handler
* @return Pet
*/
@@ -446,367 +120,21 @@ public Pet executeAs(Function handler) {
return execute(handler).as(type);
}
- public static final String PET_ID_PATH = "petId";
-
- /**
- * @param petId (Long) ID of pet to return (required)
- * @return operation
- */
- public GetPetByIdOper petIdPath(Object petId) {
- reqSpec.addPathParam(PET_ID_PATH, petId);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public GetPetByIdOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public GetPetByIdOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * Update an existing pet
- *
- *
- * @see #body Pet object that needs to be added to the store (required)
- */
- public static class UpdatePetOper implements Oper {
-
- public static final Method REQ_METHOD = PUT;
- public static final String REQ_URI = "/pet";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public UpdatePetOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/json");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * PUT /pet
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * @param body (Pet) Pet object that needs to be added to the store (required)
- * @return operation
- */
- public UpdatePetOper body(@javax.annotation.Nonnull Pet body) {
- reqSpec.setBody(body);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public UpdatePetOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public UpdatePetOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * Updates a pet in the store with form data
- *
- *
- * @see #petIdPath ID of pet that needs to be updated (required)
- * @see #nameForm Updated name of the pet (optional)
- * @see #statusForm Updated status of the pet (optional)
- */
- public static class UpdatePetWithFormOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/pet/{petId}";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public UpdatePetWithFormOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("application/x-www-form-urlencoded");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /pet/{petId}
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- public static final String PET_ID_PATH = "petId";
-
- /**
- * @param petId (Long) ID of pet that needs to be updated (required)
- * @return operation
- */
- public UpdatePetWithFormOper petIdPath(Object petId) {
- reqSpec.addPathParam(PET_ID_PATH, petId);
- return this;
- }
-
- public static final String NAME_FORM = "name";
-
- /**
- * @param name (String) Updated name of the pet (optional)
- * @return operation
- */
- public UpdatePetWithFormOper nameForm(Object... name) {
- reqSpec.addFormParam(NAME_FORM, name);
- return this;
- }
-
- public static final String STATUS_FORM = "status";
-
- /**
- * @param status (String) Updated status of the pet (optional)
- * @return operation
- */
- public UpdatePetWithFormOper statusForm(Object... status) {
- reqSpec.addFormParam(STATUS_FORM, status);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public UpdatePetWithFormOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public UpdatePetWithFormOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * uploads an image
- *
- *
- * @see #petIdPath ID of pet to update (required)
- * @see #additionalMetadataForm Additional data to pass to server (optional)
- * @see #_fileMultiPart file to upload (optional)
- * return ModelApiResponse
- */
- public static class UploadFileOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/pet/{petId}/uploadImage";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public UploadFileOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("multipart/form-data");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /pet/{petId}/uploadImage
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * POST /pet/{petId}/uploadImage
- * @param handler handler
- * @return ModelApiResponse
- */
- public ModelApiResponse executeAs(Function handler) {
- TypeRef type = new TypeRef(){};
- return execute(handler).as(type);
- }
-
- public static final String PET_ID_PATH = "petId";
-
- /**
- * @param petId (Long) ID of pet to update (required)
- * @return operation
- */
- public UploadFileOper petIdPath(Object petId) {
- reqSpec.addPathParam(PET_ID_PATH, petId);
- return this;
- }
-
- public static final String ADDITIONAL_METADATA_FORM = "additionalMetadata";
-
- /**
- * @param additionalMetadata (String) Additional data to pass to server (optional)
- * @return operation
- */
- public UploadFileOper additionalMetadataForm(Object... additionalMetadata) {
- reqSpec.addFormParam(ADDITIONAL_METADATA_FORM, additionalMetadata);
- return this;
- }
-
/**
- * It will assume that the control name is file and the <content-type> is <application/octet-stream>
- * @see #reqSpec for customise
- * @param _file (File) file to upload (optional)
+ * @param pet (Pet) Pet object that needs to be added to the store (required)
* @return operation
*/
- public UploadFileOper _fileMultiPart(@javax.annotation.Nullable File _file) {
- reqSpec.addMultiPart(_file);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public UploadFileOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
+ public AddPetOper body(@javax.annotation.Nonnull Pet pet) {
+ reqSpec.setBody(pet);
return this;
}
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public UploadFileOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * uploads an image (required)
- *
- *
- * @see #petIdPath ID of pet to update (required)
- * @see #requiredFileMultiPart file to upload (required)
- * @see #additionalMetadataForm Additional data to pass to server (optional)
- * return ModelApiResponse
- */
- public static class UploadFileWithRequiredFileOper implements Oper {
-
- public static final Method REQ_METHOD = POST;
- public static final String REQ_URI = "/fake/{petId}/uploadImageWithRequiredFile";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public UploadFileWithRequiredFileOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setContentType("multipart/form-data");
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * POST /fake/{petId}/uploadImageWithRequiredFile
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * POST /fake/{petId}/uploadImageWithRequiredFile
- * @param handler handler
- * @return ModelApiResponse
- */
- public ModelApiResponse executeAs(Function handler) {
- TypeRef type = new TypeRef(){};
- return execute(handler).as(type);
- }
-
- public static final String PET_ID_PATH = "petId";
-
- /**
- * @param petId (Long) ID of pet to update (required)
- * @return operation
- */
- public UploadFileWithRequiredFileOper petIdPath(Object petId) {
- reqSpec.addPathParam(PET_ID_PATH, petId);
- return this;
- }
-
- public static final String ADDITIONAL_METADATA_FORM = "additionalMetadata";
-
- /**
- * @param additionalMetadata (String) Additional data to pass to server (optional)
- * @return operation
- */
- public UploadFileWithRequiredFileOper additionalMetadataForm(Object... additionalMetadata) {
- reqSpec.addFormParam(ADDITIONAL_METADATA_FORM, additionalMetadata);
- return this;
- }
-
- /**
- * It will assume that the control name is file and the <content-type> is <application/octet-stream>
- * @see #reqSpec for customise
- * @param requiredFile (File) file to upload (required)
- * @return operation
- */
- public UploadFileWithRequiredFileOper requiredFileMultiPart(@javax.annotation.Nonnull File requiredFile) {
- reqSpec.addMultiPart(requiredFile);
- return this;
- }
-
/**
* Customize request specification
* @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
* @return operation
*/
- public UploadFileWithRequiredFileOper reqSpec(Consumer reqSpecCustomizer) {
+ public AddPetOper reqSpec(Consumer reqSpecCustomizer) {
reqSpecCustomizer.accept(reqSpec);
return this;
}
@@ -816,7 +144,7 @@ public UploadFileWithRequiredFileOper reqSpec(Consumer reqSp
* @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
* @return operation
*/
- public UploadFileWithRequiredFileOper respSpec(Consumer respSpecCustomizer) {
+ public AddPetOper respSpec(Consumer respSpecCustomizer) {
respSpecCustomizer.accept(respSpec);
return this;
}
diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/StoreApi.java
deleted file mode 100644
index 1483a350008c..000000000000
--- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/StoreApi.java
+++ /dev/null
@@ -1,363 +0,0 @@
-/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
- *
- * The version of the OpenAPI document: 1.0.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package org.openapitools.client.api;
-
-import org.openapitools.client.model.Order;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import io.restassured.RestAssured;
-import io.restassured.builder.RequestSpecBuilder;
-import io.restassured.builder.ResponseSpecBuilder;
-import io.restassured.common.mapper.TypeRef;
-import io.restassured.http.Method;
-import io.restassured.response.Response;
-
-import javax.validation.constraints.*;
-import javax.validation.Valid;
-
-import java.lang.reflect.Type;
-import java.util.function.Consumer;
-import java.util.function.Function;
-import java.util.function.Supplier;
-import static io.restassured.http.Method.*;
-
-public class StoreApi {
-
- private Supplier reqSpecSupplier;
- private Consumer reqSpecCustomizer;
-
- private StoreApi(Supplier reqSpecSupplier) {
- this.reqSpecSupplier = reqSpecSupplier;
- }
-
- public static StoreApi store(Supplier reqSpecSupplier) {
- return new StoreApi(reqSpecSupplier);
- }
-
- private RequestSpecBuilder createReqSpec() {
- RequestSpecBuilder reqSpec = reqSpecSupplier.get();
- if(reqSpecCustomizer != null) {
- reqSpecCustomizer.accept(reqSpec);
- }
- return reqSpec;
- }
-
- public List getAllOperations() {
- return Arrays.asList(
- deleteOrder(),
- getInventory(),
- getOrderById(),
- placeOrder()
- );
- }
-
- public DeleteOrderOper deleteOrder() {
- return new DeleteOrderOper(createReqSpec());
- }
-
- public GetInventoryOper getInventory() {
- return new GetInventoryOper(createReqSpec());
- }
-
- public GetOrderByIdOper getOrderById() {
- return new GetOrderByIdOper(createReqSpec());
- }
-
- public PlaceOrderOper placeOrder() {
- return new PlaceOrderOper(createReqSpec());
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return api
- */
- public StoreApi reqSpec(Consumer reqSpecCustomizer) {
- this.reqSpecCustomizer = reqSpecCustomizer;
- return this;
- }
-
- /**
- * Delete purchase order by ID
- * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
- *
- * @see #orderIdPath ID of the order that needs to be deleted (required)
- */
- public static class DeleteOrderOper implements Oper {
-
- public static final Method REQ_METHOD = DELETE;
- public static final String REQ_URI = "/store/order/{order_id}";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public DeleteOrderOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * DELETE /store/order/{order_id}
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- public static final String ORDER_ID_PATH = "order_id";
-
- /**
- * @param orderId (String) ID of the order that needs to be deleted (required)
- * @return operation
- */
- public DeleteOrderOper orderIdPath(Object orderId) {
- reqSpec.addPathParam(ORDER_ID_PATH, orderId);
- return this;
- }
-
- /**
- * Customize request specification
- * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder
- * @return operation
- */
- public DeleteOrderOper reqSpec(Consumer reqSpecCustomizer) {
- reqSpecCustomizer.accept(reqSpec);
- return this;
- }
-
- /**
- * Customize response specification
- * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder
- * @return operation
- */
- public DeleteOrderOper respSpec(Consumer respSpecCustomizer) {
- respSpecCustomizer.accept(respSpec);
- return this;
- }
- }
- /**
- * Returns pet inventories by status
- * Returns a map of status codes to quantities
- *
- * return Map<String, Integer>
- */
- public static class GetInventoryOper implements Oper {
-
- public static final Method REQ_METHOD = GET;
- public static final String REQ_URI = "/store/inventory";
-
- private RequestSpecBuilder reqSpec;
- private ResponseSpecBuilder respSpec;
-
- public GetInventoryOper(RequestSpecBuilder reqSpec) {
- this.reqSpec = reqSpec;
- reqSpec.setAccept("application/json");
- this.respSpec = new ResponseSpecBuilder();
- }
-
- /**
- * GET /store/inventory
- * @param handler handler
- * @param type
- * @return type
- */
- @Override
- public T execute(Function handler) {
- return handler.apply(RestAssured.given().spec(reqSpec.build()).expect().spec(respSpec.build()).when().request(REQ_METHOD, REQ_URI));
- }
-
- /**
- * GET /store/inventory
- * @param handler handler
- * @return Map<String, Integer>
- */
- public Map executeAs(Function handler) {
- TypeRef