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> type = new TypeRef>(){}; - return execute(handler).as(type); - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public GetInventoryOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public GetInventoryOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } - /** - * Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions - * - * @see #orderIdPath ID of pet that needs to be fetched (required) - * return Order - */ - public static class GetOrderByIdOper implements Oper { - - public static final Method REQ_METHOD = GET; - public static final String REQ_URI = "/store/order/{order_id}"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public GetOrderByIdOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setAccept("application/json,application/xml"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * GET /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)); - } - - /** - * GET /store/order/{order_id} - * @param handler handler - * @return Order - */ - public Order executeAs(Function handler) { - TypeRef type = new TypeRef(){}; - return execute(handler).as(type); - } - - public static final String ORDER_ID_PATH = "order_id"; - - /** - * @param orderId (Long) ID of pet that needs to be fetched (required) - * @return operation - */ - public GetOrderByIdOper orderIdPath(Object orderId) { - reqSpec.addPathParam(ORDER_ID_PATH, orderId); - return this; - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public GetOrderByIdOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public GetOrderByIdOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } - /** - * Place an order for a pet - * - * - * @see #body order placed for purchasing the pet (required) - * return Order - */ - public static class PlaceOrderOper implements Oper { - - public static final Method REQ_METHOD = POST; - public static final String REQ_URI = "/store/order"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public PlaceOrderOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setContentType("*/*"); - reqSpec.setAccept("application/json,application/xml"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * POST /store/order - * @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 /store/order - * @param handler handler - * @return Order - */ - public Order executeAs(Function handler) { - TypeRef type = new TypeRef(){}; - return execute(handler).as(type); - } - - /** - * @param body (Order) order placed for purchasing the pet (required) - * @return operation - */ - public PlaceOrderOper body(@javax.annotation.Nonnull Order body) { - reqSpec.setBody(body); - return this; - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public PlaceOrderOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public PlaceOrderOper 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/UserApi.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/UserApi.java deleted file mode 100644 index 3aad98dd899c..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/api/UserApi.java +++ /dev/null @@ -1,642 +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.time.OffsetDateTime; -import org.openapitools.client.model.User; - -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 UserApi { - - private Supplier reqSpecSupplier; - private Consumer reqSpecCustomizer; - - private UserApi(Supplier reqSpecSupplier) { - this.reqSpecSupplier = reqSpecSupplier; - } - - public static UserApi user(Supplier reqSpecSupplier) { - return new UserApi(reqSpecSupplier); - } - - private RequestSpecBuilder createReqSpec() { - RequestSpecBuilder reqSpec = reqSpecSupplier.get(); - if(reqSpecCustomizer != null) { - reqSpecCustomizer.accept(reqSpec); - } - return reqSpec; - } - - public List getAllOperations() { - return Arrays.asList( - createUser(), - createUsersWithArrayInput(), - createUsersWithListInput(), - deleteUser(), - getUserByName(), - loginUser(), - logoutUser(), - updateUser() - ); - } - - public CreateUserOper createUser() { - return new CreateUserOper(createReqSpec()); - } - - public CreateUsersWithArrayInputOper createUsersWithArrayInput() { - return new CreateUsersWithArrayInputOper(createReqSpec()); - } - - public CreateUsersWithListInputOper createUsersWithListInput() { - return new CreateUsersWithListInputOper(createReqSpec()); - } - - public DeleteUserOper deleteUser() { - return new DeleteUserOper(createReqSpec()); - } - - public GetUserByNameOper getUserByName() { - return new GetUserByNameOper(createReqSpec()); - } - - public LoginUserOper loginUser() { - return new LoginUserOper(createReqSpec()); - } - - public LogoutUserOper logoutUser() { - return new LogoutUserOper(createReqSpec()); - } - - public UpdateUserOper updateUser() { - return new UpdateUserOper(createReqSpec()); - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return api - */ - public UserApi reqSpec(Consumer reqSpecCustomizer) { - this.reqSpecCustomizer = reqSpecCustomizer; - return this; - } - - /** - * Create user - * This can only be done by the logged in user. - * - * @see #body Created user object (required) - */ - public static class CreateUserOper implements Oper { - - public static final Method REQ_METHOD = POST; - public static final String REQ_URI = "/user"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public CreateUserOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setContentType("*/*"); - reqSpec.setAccept("application/json"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * POST /user - * @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) Created user object (required) - * @return operation - */ - public CreateUserOper body(@javax.annotation.Nonnull User body) { - reqSpec.setBody(body); - return this; - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public CreateUserOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public CreateUserOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } - /** - * Creates list of users with given input array - * - * - * @see #body List of user object (required) - */ - public static class CreateUsersWithArrayInputOper implements Oper { - - public static final Method REQ_METHOD = POST; - public static final String REQ_URI = "/user/createWithArray"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public CreateUsersWithArrayInputOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setContentType("*/*"); - reqSpec.setAccept("application/json"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * POST /user/createWithArray - * @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 (List<@Valid User>) List of user object (required) - * @return operation - */ - public CreateUsersWithArrayInputOper body(@javax.annotation.Nonnull List<@Valid User> body) { - reqSpec.setBody(body); - return this; - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public CreateUsersWithArrayInputOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public CreateUsersWithArrayInputOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } - /** - * Creates list of users with given input array - * - * - * @see #body List of user object (required) - */ - public static class CreateUsersWithListInputOper implements Oper { - - public static final Method REQ_METHOD = POST; - public static final String REQ_URI = "/user/createWithList"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public CreateUsersWithListInputOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setContentType("*/*"); - reqSpec.setAccept("application/json"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * POST /user/createWithList - * @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 (List<@Valid User>) List of user object (required) - * @return operation - */ - public CreateUsersWithListInputOper body(@javax.annotation.Nonnull List<@Valid User> body) { - reqSpec.setBody(body); - return this; - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public CreateUsersWithListInputOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public CreateUsersWithListInputOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } - /** - * Delete user - * This can only be done by the logged in user. - * - * @see #usernamePath The name that needs to be deleted (required) - */ - public static class DeleteUserOper implements Oper { - - public static final Method REQ_METHOD = DELETE; - public static final String REQ_URI = "/user/{username}"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public DeleteUserOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setAccept("application/json"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * DELETE /user/{username} - * @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 USERNAME_PATH = "username"; - - /** - * @param username (String) The name that needs to be deleted (required) - * @return operation - */ - public DeleteUserOper usernamePath(Object username) { - reqSpec.addPathParam(USERNAME_PATH, username); - return this; - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public DeleteUserOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public DeleteUserOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } - /** - * Get user by user name - * - * - * @see #usernamePath The name that needs to be fetched. Use user1 for testing. (required) - * return User - */ - public static class GetUserByNameOper implements Oper { - - public static final Method REQ_METHOD = GET; - public static final String REQ_URI = "/user/{username}"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public GetUserByNameOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setAccept("application/json,application/xml"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * GET /user/{username} - * @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 /user/{username} - * @param handler handler - * @return User - */ - public User executeAs(Function handler) { - TypeRef type = new TypeRef(){}; - return execute(handler).as(type); - } - - public static final String USERNAME_PATH = "username"; - - /** - * @param username (String) The name that needs to be fetched. Use user1 for testing. (required) - * @return operation - */ - public GetUserByNameOper usernamePath(Object username) { - reqSpec.addPathParam(USERNAME_PATH, username); - return this; - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public GetUserByNameOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public GetUserByNameOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } - /** - * Logs user into the system - * - * - * @see #usernameQuery The user name for login (required) - * @see #passwordQuery The password for login in clear text (required) - * return String - */ - public static class LoginUserOper implements Oper { - - public static final Method REQ_METHOD = GET; - public static final String REQ_URI = "/user/login"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public LoginUserOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setAccept("application/json,application/xml"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * GET /user/login - * @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 /user/login - * @param handler handler - * @return String - */ - public String executeAs(Function handler) { - TypeRef type = new TypeRef(){}; - return execute(handler).as(type); - } - - public static final String USERNAME_QUERY = "username"; - - /** - * @param username (String) The user name for login (required) - * @return operation - */ - public LoginUserOper usernameQuery(Object... username) { - reqSpec.addQueryParam(USERNAME_QUERY, username); - return this; - } - - public static final String PASSWORD_QUERY = "password"; - - /** - * @param password (String) The password for login in clear text (required) - * @return operation - */ - public LoginUserOper passwordQuery(Object... password) { - reqSpec.addQueryParam(PASSWORD_QUERY, password); - return this; - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public LoginUserOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public LoginUserOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } - /** - * Logs out current logged in user session - * - * - */ - public static class LogoutUserOper implements Oper { - - public static final Method REQ_METHOD = GET; - public static final String REQ_URI = "/user/logout"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public LogoutUserOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setAccept("application/json"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * GET /user/logout - * @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)); - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public LogoutUserOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public LogoutUserOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } - /** - * Updated user - * This can only be done by the logged in user. - * - * @see #usernamePath name that need to be deleted (required) - * @see #body Updated user object (required) - */ - public static class UpdateUserOper implements Oper { - - public static final Method REQ_METHOD = PUT; - public static final String REQ_URI = "/user/{username}"; - - private RequestSpecBuilder reqSpec; - private ResponseSpecBuilder respSpec; - - public UpdateUserOper(RequestSpecBuilder reqSpec) { - this.reqSpec = reqSpec; - reqSpec.setContentType("*/*"); - reqSpec.setAccept("application/json"); - this.respSpec = new ResponseSpecBuilder(); - } - - /** - * PUT /user/{username} - * @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) Updated user object (required) - * @return operation - */ - public UpdateUserOper body(@javax.annotation.Nonnull User body) { - reqSpec.setBody(body); - return this; - } - - public static final String USERNAME_PATH = "username"; - - /** - * @param username (String) name that need to be deleted (required) - * @return operation - */ - public UpdateUserOper usernamePath(Object username) { - reqSpec.addPathParam(USERNAME_PATH, username); - return this; - } - - /** - * Customize request specification - * @param reqSpecCustomizer consumer to modify the RequestSpecBuilder - * @return operation - */ - public UpdateUserOper reqSpec(Consumer reqSpecCustomizer) { - reqSpecCustomizer.accept(reqSpec); - return this; - } - - /** - * Customize response specification - * @param respSpecCustomizer consumer to modify the ResponseSpecBuilder - * @return operation - */ - public UpdateUserOper respSpec(Consumer respSpecCustomizer) { - respSpecCustomizer.accept(respSpec); - return this; - } - } -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java deleted file mode 100644 index 668dbc57352e..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ /dev/null @@ -1,146 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonFormat; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * AdditionalPropertiesAnyType - */ -@JsonPropertyOrder({ - AdditionalPropertiesAnyType.JSON_PROPERTY_NAME -}) -@JsonFormat(shape=JsonFormat.Shape.OBJECT) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class AdditionalPropertiesAnyType extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; - - public AdditionalPropertiesAnyType() { - - } - - public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getName() { - return name; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@javax.annotation.Nullable String name) { - this.name = name; - } - - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Object getAdditionalProperty(String key) { - return this.get(key); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesAnyType additionalPropertiesAnyType = (AdditionalPropertiesAnyType) o; - return Objects.equals(this.name, additionalPropertiesAnyType.name) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(name, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesAnyType {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java deleted file mode 100644 index bd6050dfe328..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ /dev/null @@ -1,147 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonFormat; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * AdditionalPropertiesArray - */ -@JsonPropertyOrder({ - AdditionalPropertiesArray.JSON_PROPERTY_NAME -}) -@JsonFormat(shape=JsonFormat.Shape.OBJECT) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class AdditionalPropertiesArray extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; - - public AdditionalPropertiesArray() { - - } - - public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getName() { - return name; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@javax.annotation.Nullable String name) { - this.name = name; - } - - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesArray putAdditionalProperty(String key, List value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public List getAdditionalProperty(String key) { - return this.get(key); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesArray additionalPropertiesArray = (AdditionalPropertiesArray) o; - return Objects.equals(this.name, additionalPropertiesArray.name) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(name, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesArray {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java deleted file mode 100644 index 8bb30063f41e..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ /dev/null @@ -1,146 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonFormat; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * AdditionalPropertiesBoolean - */ -@JsonPropertyOrder({ - AdditionalPropertiesBoolean.JSON_PROPERTY_NAME -}) -@JsonFormat(shape=JsonFormat.Shape.OBJECT) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class AdditionalPropertiesBoolean extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; - - public AdditionalPropertiesBoolean() { - - } - - public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getName() { - return name; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@javax.annotation.Nullable String name) { - this.name = name; - } - - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesBoolean putAdditionalProperty(String key, Boolean value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Boolean getAdditionalProperty(String key) { - return this.get(key); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesBoolean additionalPropertiesBoolean = (AdditionalPropertiesBoolean) o; - return Objects.equals(this.name, additionalPropertiesBoolean.name) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(name, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesBoolean {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java deleted file mode 100644 index 627264e9d93b..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ /dev/null @@ -1,503 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * AdditionalPropertiesClass - */ -@JsonPropertyOrder({ - AdditionalPropertiesClass.JSON_PROPERTY_MAP_STRING, - AdditionalPropertiesClass.JSON_PROPERTY_MAP_NUMBER, - AdditionalPropertiesClass.JSON_PROPERTY_MAP_INTEGER, - AdditionalPropertiesClass.JSON_PROPERTY_MAP_BOOLEAN, - AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_INTEGER, - AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_ANYTYPE, - AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_STRING, - AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_ANYTYPE, - AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE1, - AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE2, - AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3 -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class AdditionalPropertiesClass { - public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); - - public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); - - public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); - - public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); - - public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); - - public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); - - public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); - - public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); - - public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @javax.annotation.Nullable - private Object anytype1; - - public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @javax.annotation.Nullable - private Object anytype2; - - public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @javax.annotation.Nullable - private Object anytype3; - - public AdditionalPropertiesClass() { - } - - public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { - - this.mapString = mapString; - return this; - } - - public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) { - if (this.mapString == null) { - this.mapString = new HashMap<>(); - } - this.mapString.put(key, mapStringItem); - return this; - } - - /** - * Get mapString - * @return mapString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getMapString() { - return mapString; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapString(@javax.annotation.Nullable Map mapString) { - this.mapString = mapString; - } - - public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { - - this.mapNumber = mapNumber; - return this; - } - - public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) { - if (this.mapNumber == null) { - this.mapNumber = new HashMap<>(); - } - this.mapNumber.put(key, mapNumberItem); - return this; - } - - /** - * Get mapNumber - * @return mapNumber - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getMapNumber() { - return mapNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { - this.mapNumber = mapNumber; - } - - public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { - - this.mapInteger = mapInteger; - return this; - } - - public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) { - if (this.mapInteger == null) { - this.mapInteger = new HashMap<>(); - } - this.mapInteger.put(key, mapIntegerItem); - return this; - } - - /** - * Get mapInteger - * @return mapInteger - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getMapInteger() { - return mapInteger; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { - this.mapInteger = mapInteger; - } - - public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { - - this.mapBoolean = mapBoolean; - return this; - } - - public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) { - if (this.mapBoolean == null) { - this.mapBoolean = new HashMap<>(); - } - this.mapBoolean.put(key, mapBooleanItem); - return this; - } - - /** - * Get mapBoolean - * @return mapBoolean - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getMapBoolean() { - return mapBoolean; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { - this.mapBoolean = mapBoolean; - } - - public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { - - this.mapArrayInteger = mapArrayInteger; - return this; - } - - public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List mapArrayIntegerItem) { - if (this.mapArrayInteger == null) { - this.mapArrayInteger = new HashMap<>(); - } - this.mapArrayInteger.put(key, mapArrayIntegerItem); - return this; - } - - /** - * Get mapArrayInteger - * @return mapArrayInteger - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map> getMapArrayInteger() { - return mapArrayInteger; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { - this.mapArrayInteger = mapArrayInteger; - } - - public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { - - this.mapArrayAnytype = mapArrayAnytype; - return this; - } - - public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List mapArrayAnytypeItem) { - if (this.mapArrayAnytype == null) { - this.mapArrayAnytype = new HashMap<>(); - } - this.mapArrayAnytype.put(key, mapArrayAnytypeItem); - return this; - } - - /** - * Get mapArrayAnytype - * @return mapArrayAnytype - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map> getMapArrayAnytype() { - return mapArrayAnytype; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { - this.mapArrayAnytype = mapArrayAnytype; - } - - public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { - - this.mapMapString = mapMapString; - return this; - } - - public AdditionalPropertiesClass putMapMapStringItem(String key, Map mapMapStringItem) { - if (this.mapMapString == null) { - this.mapMapString = new HashMap<>(); - } - this.mapMapString.put(key, mapMapStringItem); - return this; - } - - /** - * Get mapMapString - * @return mapMapString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map> getMapMapString() { - return mapMapString; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { - this.mapMapString = mapMapString; - } - - public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { - - this.mapMapAnytype = mapMapAnytype; - return this; - } - - public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map mapMapAnytypeItem) { - if (this.mapMapAnytype == null) { - this.mapMapAnytype = new HashMap<>(); - } - this.mapMapAnytype.put(key, mapMapAnytypeItem); - return this; - } - - /** - * Get mapMapAnytype - * @return mapMapAnytype - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map> getMapMapAnytype() { - return mapMapAnytype; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { - this.mapMapAnytype = mapMapAnytype; - } - - public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { - - this.anytype1 = anytype1; - return this; - } - - /** - * Get anytype1 - * @return anytype1 - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Object getAnytype1() { - return anytype1; - } - - - @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype1(@javax.annotation.Nullable Object anytype1) { - this.anytype1 = anytype1; - } - - public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { - - this.anytype2 = anytype2; - return this; - } - - /** - * Get anytype2 - * @return anytype2 - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Object getAnytype2() { - return anytype2; - } - - - @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype2(@javax.annotation.Nullable Object anytype2) { - this.anytype2 = anytype2; - } - - public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { - - this.anytype3 = anytype3; - return this; - } - - /** - * Get anytype3 - * @return anytype3 - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Object getAnytype3() { - return anytype3; - } - - - @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype3(@javax.annotation.Nullable Object anytype3) { - this.anytype3 = anytype3; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o; - return Objects.equals(this.mapString, additionalPropertiesClass.mapString) && - Objects.equals(this.mapNumber, additionalPropertiesClass.mapNumber) && - Objects.equals(this.mapInteger, additionalPropertiesClass.mapInteger) && - Objects.equals(this.mapBoolean, additionalPropertiesClass.mapBoolean) && - Objects.equals(this.mapArrayInteger, additionalPropertiesClass.mapArrayInteger) && - Objects.equals(this.mapArrayAnytype, additionalPropertiesClass.mapArrayAnytype) && - Objects.equals(this.mapMapString, additionalPropertiesClass.mapMapString) && - Objects.equals(this.mapMapAnytype, additionalPropertiesClass.mapMapAnytype) && - Objects.equals(this.anytype1, additionalPropertiesClass.anytype1) && - Objects.equals(this.anytype2, additionalPropertiesClass.anytype2) && - Objects.equals(this.anytype3, additionalPropertiesClass.anytype3); - } - - @Override - public int hashCode() { - return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesClass {\n"); - sb.append(" mapString: ").append(toIndentedString(mapString)).append("\n"); - sb.append(" mapNumber: ").append(toIndentedString(mapNumber)).append("\n"); - sb.append(" mapInteger: ").append(toIndentedString(mapInteger)).append("\n"); - sb.append(" mapBoolean: ").append(toIndentedString(mapBoolean)).append("\n"); - sb.append(" mapArrayInteger: ").append(toIndentedString(mapArrayInteger)).append("\n"); - sb.append(" mapArrayAnytype: ").append(toIndentedString(mapArrayAnytype)).append("\n"); - sb.append(" mapMapString: ").append(toIndentedString(mapMapString)).append("\n"); - sb.append(" mapMapAnytype: ").append(toIndentedString(mapMapAnytype)).append("\n"); - sb.append(" anytype1: ").append(toIndentedString(anytype1)).append("\n"); - sb.append(" anytype2: ").append(toIndentedString(anytype2)).append("\n"); - sb.append(" anytype3: ").append(toIndentedString(anytype3)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java deleted file mode 100644 index 3ea7caa7cb32..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ /dev/null @@ -1,146 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonFormat; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * AdditionalPropertiesInteger - */ -@JsonPropertyOrder({ - AdditionalPropertiesInteger.JSON_PROPERTY_NAME -}) -@JsonFormat(shape=JsonFormat.Shape.OBJECT) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class AdditionalPropertiesInteger extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; - - public AdditionalPropertiesInteger() { - - } - - public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getName() { - return name; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@javax.annotation.Nullable String name) { - this.name = name; - } - - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesInteger putAdditionalProperty(String key, Integer value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Integer getAdditionalProperty(String key) { - return this.get(key); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesInteger additionalPropertiesInteger = (AdditionalPropertiesInteger) o; - return Objects.equals(this.name, additionalPropertiesInteger.name) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(name, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesInteger {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java deleted file mode 100644 index ecbe2b33da8f..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ /dev/null @@ -1,147 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonFormat; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * AdditionalPropertiesNumber - */ -@JsonPropertyOrder({ - AdditionalPropertiesNumber.JSON_PROPERTY_NAME -}) -@JsonFormat(shape=JsonFormat.Shape.OBJECT) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class AdditionalPropertiesNumber extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; - - public AdditionalPropertiesNumber() { - - } - - public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getName() { - return name; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@javax.annotation.Nullable String name) { - this.name = name; - } - - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesNumber putAdditionalProperty(String key, BigDecimal value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public BigDecimal getAdditionalProperty(String key) { - return this.get(key); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesNumber additionalPropertiesNumber = (AdditionalPropertiesNumber) o; - return Objects.equals(this.name, additionalPropertiesNumber.name) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(name, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesNumber {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java deleted file mode 100644 index 39880e1056a5..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ /dev/null @@ -1,146 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonFormat; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * AdditionalPropertiesObject - */ -@JsonPropertyOrder({ - AdditionalPropertiesObject.JSON_PROPERTY_NAME -}) -@JsonFormat(shape=JsonFormat.Shape.OBJECT) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class AdditionalPropertiesObject extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; - - public AdditionalPropertiesObject() { - - } - - public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getName() { - return name; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@javax.annotation.Nullable String name) { - this.name = name; - } - - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesObject putAdditionalProperty(String key, Map value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Map getAdditionalProperty(String key) { - return this.get(key); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesObject additionalPropertiesObject = (AdditionalPropertiesObject) o; - return Objects.equals(this.name, additionalPropertiesObject.name) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(name, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesObject {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java deleted file mode 100644 index 7287b297fa97..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ /dev/null @@ -1,146 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonFormat; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * AdditionalPropertiesString - */ -@JsonPropertyOrder({ - AdditionalPropertiesString.JSON_PROPERTY_NAME -}) -@JsonFormat(shape=JsonFormat.Shape.OBJECT) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class AdditionalPropertiesString extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; - - public AdditionalPropertiesString() { - - } - - public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getName() { - return name; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@javax.annotation.Nullable String name) { - this.name = name; - } - - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesString putAdditionalProperty(String key, String value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public String getAdditionalProperty(String key) { - return this.get(key); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesString additionalPropertiesString = (AdditionalPropertiesString) o; - return Objects.equals(this.name, additionalPropertiesString.name) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(name, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesString {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Animal.java deleted file mode 100644 index cea13ce3f64b..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Animal.java +++ /dev/null @@ -1,153 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Animal - */ -@JsonPropertyOrder({ - Animal.JSON_PROPERTY_CLASS_NAME, - Animal.JSON_PROPERTY_COLOR -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -@JsonIgnoreProperties( - value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the className to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = BigCat.class, name = "BigCat"), - @JsonSubTypes.Type(value = Cat.class, name = "Cat"), - @JsonSubTypes.Type(value = Dog.class, name = "Dog"), -}) - -public class Animal { - public static final String JSON_PROPERTY_CLASS_NAME = "className"; - // The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation - protected String className; - - public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - protected String color = "red"; - - public Animal() { - } - - public Animal className(@javax.annotation.Nonnull String className) { - - this.className = className; - return this; - } - - /** - * Get className - * @return className - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getClassName() { - return className; - } - - - @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(@javax.annotation.Nonnull String className) { - this.className = className; - } - - public Animal color(@javax.annotation.Nullable String color) { - - this.color = color; - return this; - } - - /** - * Get color - * @return color - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getColor() { - return color; - } - - - @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(@javax.annotation.Nullable String color) { - this.color = color; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Animal animal = (Animal) o; - return Objects.equals(this.className, animal.className) && - Objects.equals(this.color, animal.color); - } - - @Override - public int hashCode() { - return Objects.hash(className, color); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Animal {\n"); - sb.append(" className: ").append(toIndentedString(className)).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java deleted file mode 100644 index ccea7f1551c7..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ /dev/null @@ -1,117 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * ArrayOfArrayOfNumberOnly - */ -@JsonPropertyOrder({ - ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class ArrayOfArrayOfNumberOnly { - public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); - - public ArrayOfArrayOfNumberOnly() { - } - - public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { - - this.arrayArrayNumber = arrayArrayNumber; - return this; - } - - public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayArrayNumberItem) { - if (this.arrayArrayNumber == null) { - this.arrayArrayNumber = new ArrayList<>(); - } - this.arrayArrayNumber.add(arrayArrayNumberItem); - return this; - } - - /** - * Get arrayArrayNumber - * @return arrayArrayNumber - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List> getArrayArrayNumber() { - return arrayArrayNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { - this.arrayArrayNumber = arrayArrayNumber; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o; - return Objects.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber); - } - - @Override - public int hashCode() { - return Objects.hash(arrayArrayNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayOfArrayOfNumberOnly {\n"); - sb.append(" arrayArrayNumber: ").append(toIndentedString(arrayArrayNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java deleted file mode 100644 index e8a4e88ef17a..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ /dev/null @@ -1,117 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * ArrayOfNumberOnly - */ -@JsonPropertyOrder({ - ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class ArrayOfNumberOnly { - public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); - - public ArrayOfNumberOnly() { - } - - public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { - - this.arrayNumber = arrayNumber; - return this; - } - - public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { - if (this.arrayNumber == null) { - this.arrayNumber = new ArrayList<>(); - } - this.arrayNumber.add(arrayNumberItem); - return this; - } - - /** - * Get arrayNumber - * @return arrayNumber - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getArrayNumber() { - return arrayNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { - this.arrayNumber = arrayNumber; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o; - return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber); - } - - @Override - public int hashCode() { - return Objects.hash(arrayNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayOfNumberOnly {\n"); - sb.append(" arrayNumber: ").append(toIndentedString(arrayNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ArrayTest.java deleted file mode 100644 index 12074bd23cfa..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ArrayTest.java +++ /dev/null @@ -1,199 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.client.model.ReadOnlyFirst; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * ArrayTest - */ -@JsonPropertyOrder({ - ArrayTest.JSON_PROPERTY_ARRAY_OF_STRING, - ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, - ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class ArrayTest { - public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); - - public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); - - public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); - - public ArrayTest() { - } - - public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { - - this.arrayOfString = arrayOfString; - return this; - } - - public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { - if (this.arrayOfString == null) { - this.arrayOfString = new ArrayList<>(); - } - this.arrayOfString.add(arrayOfStringItem); - return this; - } - - /** - * Get arrayOfString - * @return arrayOfString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getArrayOfString() { - return arrayOfString; - } - - - @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { - this.arrayOfString = arrayOfString; - } - - public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { - - this.arrayArrayOfInteger = arrayArrayOfInteger; - return this; - } - - public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { - if (this.arrayArrayOfInteger == null) { - this.arrayArrayOfInteger = new ArrayList<>(); - } - this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem); - return this; - } - - /** - * Get arrayArrayOfInteger - * @return arrayArrayOfInteger - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List> getArrayArrayOfInteger() { - return arrayArrayOfInteger; - } - - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { - this.arrayArrayOfInteger = arrayArrayOfInteger; - } - - public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { - - this.arrayArrayOfModel = arrayArrayOfModel; - return this; - } - - public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) { - if (this.arrayArrayOfModel == null) { - this.arrayArrayOfModel = new ArrayList<>(); - } - this.arrayArrayOfModel.add(arrayArrayOfModelItem); - return this; - } - - /** - * Get arrayArrayOfModel - * @return arrayArrayOfModel - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List> getArrayArrayOfModel() { - return arrayArrayOfModel; - } - - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { - this.arrayArrayOfModel = arrayArrayOfModel; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayTest arrayTest = (ArrayTest) o; - return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) && - Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) && - Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel); - } - - @Override - public int hashCode() { - return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayTest {\n"); - sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n"); - sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n"); - sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/BigCat.java deleted file mode 100644 index 5f3b57f22200..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/BigCat.java +++ /dev/null @@ -1,169 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Cat; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * BigCat - */ -@JsonPropertyOrder({ - BigCat.JSON_PROPERTY_KIND -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -@JsonIgnoreProperties( - value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the className to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true) - -public class BigCat extends Cat { - /** - * Gets or Sets kind - */ - public enum KindEnum { - LIONS(String.valueOf("lions")), - - TIGERS(String.valueOf("tigers")), - - LEOPARDS(String.valueOf("leopards")), - - JAGUARS(String.valueOf("jaguars")); - - private String value; - - KindEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static KindEnum fromValue(String value) { - for (KindEnum b : KindEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_KIND = "kind"; - @javax.annotation.Nullable - private KindEnum kind; - - public BigCat() { - - } - - public BigCat kind(@javax.annotation.Nullable KindEnum kind) { - - this.kind = kind; - return this; - } - - /** - * Get kind - * @return kind - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_KIND, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public KindEnum getKind() { - return kind; - } - - - @JsonProperty(value = JSON_PROPERTY_KIND, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKind(@javax.annotation.Nullable KindEnum kind) { - this.kind = kind; - } - - - @Override - public BigCat className(@javax.annotation.Nonnull String className) { - this.setClassName(className); - return this; - } - - @Override - public BigCat color(@javax.annotation.Nullable String color) { - this.setColor(color); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BigCat bigCat = (BigCat) o; - return Objects.equals(this.kind, bigCat.kind) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(kind, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BigCat {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Capitalization.java deleted file mode 100644 index 90b3b06f1b52..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Capitalization.java +++ /dev/null @@ -1,270 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Capitalization - */ -@JsonPropertyOrder({ - Capitalization.JSON_PROPERTY_SMALL_CAMEL, - Capitalization.JSON_PROPERTY_CAPITAL_CAMEL, - Capitalization.JSON_PROPERTY_SMALL_SNAKE, - Capitalization.JSON_PROPERTY_CAPITAL_SNAKE, - Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, - Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class Capitalization { - public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @javax.annotation.Nullable - private String smallCamel; - - public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @javax.annotation.Nullable - private String capitalCamel; - - public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @javax.annotation.Nullable - private String smallSnake; - - public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @javax.annotation.Nullable - private String capitalSnake; - - public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @javax.annotation.Nullable - private String scAETHFlowPoints; - - public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @javax.annotation.Nullable - private String ATT_NAME; - - public Capitalization() { - } - - public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { - - this.smallCamel = smallCamel; - return this; - } - - /** - * Get smallCamel - * @return smallCamel - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getSmallCamel() { - return smallCamel; - } - - - @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { - this.smallCamel = smallCamel; - } - - public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { - - this.capitalCamel = capitalCamel; - return this; - } - - /** - * Get capitalCamel - * @return capitalCamel - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getCapitalCamel() { - return capitalCamel; - } - - - @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { - this.capitalCamel = capitalCamel; - } - - public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { - - this.smallSnake = smallSnake; - return this; - } - - /** - * Get smallSnake - * @return smallSnake - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getSmallSnake() { - return smallSnake; - } - - - @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { - this.smallSnake = smallSnake; - } - - public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { - - this.capitalSnake = capitalSnake; - return this; - } - - /** - * Get capitalSnake - * @return capitalSnake - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getCapitalSnake() { - return capitalSnake; - } - - - @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { - this.capitalSnake = capitalSnake; - } - - public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { - - this.scAETHFlowPoints = scAETHFlowPoints; - return this; - } - - /** - * Get scAETHFlowPoints - * @return scAETHFlowPoints - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getScAETHFlowPoints() { - return scAETHFlowPoints; - } - - - @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { - this.scAETHFlowPoints = scAETHFlowPoints; - } - - public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { - - this.ATT_NAME = ATT_NAME; - return this; - } - - /** - * Name of the pet - * @return ATT_NAME - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getATTNAME() { - return ATT_NAME; - } - - - @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { - this.ATT_NAME = ATT_NAME; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Capitalization capitalization = (Capitalization) o; - return Objects.equals(this.smallCamel, capitalization.smallCamel) && - Objects.equals(this.capitalCamel, capitalization.capitalCamel) && - Objects.equals(this.smallSnake, capitalization.smallSnake) && - Objects.equals(this.capitalSnake, capitalization.capitalSnake) && - Objects.equals(this.scAETHFlowPoints, capitalization.scAETHFlowPoints) && - Objects.equals(this.ATT_NAME, capitalization.ATT_NAME); - } - - @Override - public int hashCode() { - return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Capitalization {\n"); - sb.append(" smallCamel: ").append(toIndentedString(smallCamel)).append("\n"); - sb.append(" capitalCamel: ").append(toIndentedString(capitalCamel)).append("\n"); - sb.append(" smallSnake: ").append(toIndentedString(smallSnake)).append("\n"); - sb.append(" capitalSnake: ").append(toIndentedString(capitalSnake)).append("\n"); - sb.append(" scAETHFlowPoints: ").append(toIndentedString(scAETHFlowPoints)).append("\n"); - sb.append(" ATT_NAME: ").append(toIndentedString(ATT_NAME)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Cat.java deleted file mode 100644 index a9f2b11f66e1..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Cat.java +++ /dev/null @@ -1,133 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Animal; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Cat - */ -@JsonPropertyOrder({ - Cat.JSON_PROPERTY_DECLAWED -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -@JsonIgnoreProperties( - value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the className to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = BigCat.class, name = "BigCat"), -}) - -public class Cat extends Animal { - public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @javax.annotation.Nullable - protected Boolean declawed; - - public Cat() { - - } - - public Cat declawed(@javax.annotation.Nullable Boolean declawed) { - - this.declawed = declawed; - return this; - } - - /** - * Get declawed - * @return declawed - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean isDeclawed() { - return declawed; - } - - - @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { - this.declawed = declawed; - } - - - @Override - public Cat className(@javax.annotation.Nonnull String className) { - this.setClassName(className); - return this; - } - - @Override - public Cat color(@javax.annotation.Nullable String color) { - this.setColor(color); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Cat cat = (Cat) o; - return Objects.equals(this.declawed, cat.declawed) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(declawed, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Cat {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Category.java index d088a7a4e2d0..dc0f56f96a16 100644 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Category.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 * @@ -26,7 +26,7 @@ import org.hibernate.validator.constraints.*; /** - * Category + * A category for a pet */ @JsonPropertyOrder({ Category.JSON_PROPERTY_ID, @@ -39,8 +39,8 @@ public class Category { private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nullable + private String name; public Category() { } @@ -71,7 +71,7 @@ public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(@javax.annotation.Nonnull String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -81,20 +81,19 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @javax.annotation.Nullable + @Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@javax.annotation.Nonnull String name) { + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ClassModel.java deleted file mode 100644 index 8780e37d4426..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ClassModel.java +++ /dev/null @@ -1,105 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Model for testing model with \"_class\" property - */ -@JsonPropertyOrder({ - ClassModel.JSON_PROPERTY_PROPERTY_CLASS -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class ClassModel { - public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @javax.annotation.Nullable - private String propertyClass; - - public ClassModel() { - } - - public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { - - this.propertyClass = propertyClass; - return this; - } - - /** - * Get propertyClass - * @return propertyClass - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getPropertyClass() { - return propertyClass; - } - - - @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { - this.propertyClass = propertyClass; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ClassModel classModel = (ClassModel) o; - return Objects.equals(this.propertyClass, classModel.propertyClass); - } - - @Override - public int hashCode() { - return Objects.hash(propertyClass); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ClassModel {\n"); - sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Client.java deleted file mode 100644 index 1393cbcaa2ac..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Client.java +++ /dev/null @@ -1,105 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Client - */ -@JsonPropertyOrder({ - Client.JSON_PROPERTY_CLIENT -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class Client { - public static final String JSON_PROPERTY_CLIENT = "client"; - @javax.annotation.Nullable - private String client; - - public Client() { - } - - public Client client(@javax.annotation.Nullable String client) { - - this.client = client; - return this; - } - - /** - * Get client - * @return client - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getClient() { - return client; - } - - - @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(@javax.annotation.Nullable String client) { - this.client = client; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Client client = (Client) o; - return Objects.equals(this.client, client.client); - } - - @Override - public int hashCode() { - return Objects.hash(client); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Client {\n"); - sb.append(" client: ").append(toIndentedString(client)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Dog.java deleted file mode 100644 index 9a7e91b04e1e..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Dog.java +++ /dev/null @@ -1,130 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Animal; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Dog - */ -@JsonPropertyOrder({ - Dog.JSON_PROPERTY_BREED -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -@JsonIgnoreProperties( - value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the className to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true) - -public class Dog extends Animal { - public static final String JSON_PROPERTY_BREED = "breed"; - @javax.annotation.Nullable - private String breed; - - public Dog() { - - } - - public Dog breed(@javax.annotation.Nullable String breed) { - - this.breed = breed; - return this; - } - - /** - * Get breed - * @return breed - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_BREED, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getBreed() { - return breed; - } - - - @JsonProperty(value = JSON_PROPERTY_BREED, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(@javax.annotation.Nullable String breed) { - this.breed = breed; - } - - - @Override - public Dog className(@javax.annotation.Nonnull String className) { - this.setClassName(className); - return this; - } - - @Override - public Dog color(@javax.annotation.Nullable String color) { - this.setColor(color); - return this; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Dog dog = (Dog) o; - return Objects.equals(this.breed, dog.breed) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(breed, super.hashCode()); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Dog {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" breed: ").append(toIndentedString(breed)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/EnumArrays.java deleted file mode 100644 index 9182ca81d430..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/EnumArrays.java +++ /dev/null @@ -1,219 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * EnumArrays - */ -@JsonPropertyOrder({ - EnumArrays.JSON_PROPERTY_JUST_SYMBOL, - EnumArrays.JSON_PROPERTY_ARRAY_ENUM -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class EnumArrays { - /** - * Gets or Sets justSymbol - */ - public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - - DOLLAR(String.valueOf("$")); - - private String value; - - JustSymbolEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static JustSymbolEnum fromValue(String value) { - for (JustSymbolEnum b : JustSymbolEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; - - /** - * Gets or Sets arrayEnum - */ - public enum ArrayEnumEnum { - FISH(String.valueOf("fish")), - - CRAB(String.valueOf("crab")); - - private String value; - - ArrayEnumEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ArrayEnumEnum fromValue(String value) { - for (ArrayEnumEnum b : ArrayEnumEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); - - public EnumArrays() { - } - - public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { - - this.justSymbol = justSymbol; - return this; - } - - /** - * Get justSymbol - * @return justSymbol - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public JustSymbolEnum getJustSymbol() { - return justSymbol; - } - - - @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { - this.justSymbol = justSymbol; - } - - public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { - - this.arrayEnum = arrayEnum; - return this; - } - - public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { - if (this.arrayEnum == null) { - this.arrayEnum = new ArrayList<>(); - } - this.arrayEnum.add(arrayEnumItem); - return this; - } - - /** - * Get arrayEnum - * @return arrayEnum - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getArrayEnum() { - return arrayEnum; - } - - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { - this.arrayEnum = arrayEnum; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnumArrays enumArrays = (EnumArrays) o; - return Objects.equals(this.justSymbol, enumArrays.justSymbol) && - Objects.equals(this.arrayEnum, enumArrays.arrayEnum); - } - - @Override - public int hashCode() { - return Objects.hash(justSymbol, arrayEnum); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EnumArrays {\n"); - sb.append(" justSymbol: ").append(toIndentedString(justSymbol)).append("\n"); - sb.append(" arrayEnum: ").append(toIndentedString(arrayEnum)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/EnumClass.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/EnumClass.java deleted file mode 100644 index 43ec2faf20c8..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/EnumClass.java +++ /dev/null @@ -1,64 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets EnumClass - */ -public enum EnumClass { - - _ABC("_abc"), - - _EFG("-efg"), - - _XYZ_("(xyz)"); - - private String value; - - EnumClass(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumClass fromValue(String value) { - for (EnumClass b : EnumClass.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/EnumTest.java deleted file mode 100644 index ed397cfe2886..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/EnumTest.java +++ /dev/null @@ -1,386 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.OuterEnum; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * EnumTest - */ -@JsonPropertyOrder({ - EnumTest.JSON_PROPERTY_ENUM_STRING, - EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED, - EnumTest.JSON_PROPERTY_ENUM_INTEGER, - EnumTest.JSON_PROPERTY_ENUM_NUMBER, - EnumTest.JSON_PROPERTY_OUTER_ENUM -}) -@JsonTypeName("Enum_Test") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class EnumTest { - /** - * Gets or Sets enumString - */ - public enum EnumStringEnum { - UPPER(String.valueOf("UPPER")), - - LOWER(String.valueOf("lower")), - - EMPTY(String.valueOf("")); - - private String value; - - EnumStringEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumStringEnum fromValue(String value) { - for (EnumStringEnum b : EnumStringEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; - - /** - * Gets or Sets enumStringRequired - */ - public enum EnumStringRequiredEnum { - UPPER(String.valueOf("UPPER")), - - LOWER(String.valueOf("lower")), - - EMPTY(String.valueOf("")); - - private String value; - - EnumStringRequiredEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumStringRequiredEnum fromValue(String value) { - for (EnumStringRequiredEnum b : EnumStringRequiredEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; - - /** - * Gets or Sets enumInteger - */ - public enum EnumIntegerEnum { - NUMBER_1(Integer.valueOf(1)), - - NUMBER_MINUS_1(Integer.valueOf(-1)); - - private Integer value; - - EnumIntegerEnum(Integer value) { - this.value = value; - } - - @JsonValue - public Integer getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumIntegerEnum fromValue(Integer value) { - for (EnumIntegerEnum b : EnumIntegerEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; - - /** - * Gets or Sets enumNumber - */ - public enum EnumNumberEnum { - NUMBER_1_DOT_1(Double.valueOf(1.1)), - - NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); - - private Double value; - - EnumNumberEnum(Double value) { - this.value = value; - } - - @JsonValue - public Double getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumNumberEnum fromValue(Double value) { - for (EnumNumberEnum b : EnumNumberEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; - - public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private OuterEnum outerEnum; - - public EnumTest() { - } - - public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { - - this.enumString = enumString; - return this; - } - - /** - * Get enumString - * @return enumString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public EnumStringEnum getEnumString() { - return enumString; - } - - - @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { - this.enumString = enumString; - } - - public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { - - this.enumStringRequired = enumStringRequired; - return this; - } - - /** - * Get enumStringRequired - * @return enumStringRequired - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public EnumStringRequiredEnum getEnumStringRequired() { - return enumStringRequired; - } - - - @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { - this.enumStringRequired = enumStringRequired; - } - - public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { - - this.enumInteger = enumInteger; - return this; - } - - /** - * Get enumInteger - * @return enumInteger - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public EnumIntegerEnum getEnumInteger() { - return enumInteger; - } - - - @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { - this.enumInteger = enumInteger; - } - - public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { - - this.enumNumber = enumNumber; - return this; - } - - /** - * Get enumNumber - * @return enumNumber - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public EnumNumberEnum getEnumNumber() { - return enumNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { - this.enumNumber = enumNumber; - } - - public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { - - this.outerEnum = outerEnum; - return this; - } - - /** - * Get outerEnum - * @return outerEnum - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public OuterEnum getOuterEnum() { - return outerEnum; - } - - - @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { - this.outerEnum = outerEnum; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnumTest enumTest = (EnumTest) o; - return Objects.equals(this.enumString, enumTest.enumString) && - Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) && - Objects.equals(this.enumInteger, enumTest.enumInteger) && - Objects.equals(this.enumNumber, enumTest.enumNumber) && - Objects.equals(this.outerEnum, enumTest.outerEnum); - } - - @Override - public int hashCode() { - return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EnumTest {\n"); - sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n"); - sb.append(" enumStringRequired: ").append(toIndentedString(enumStringRequired)).append("\n"); - sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n"); - sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n"); - sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java deleted file mode 100644 index b09f2c5078b1..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ /dev/null @@ -1,151 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.client.model.ModelFile; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * FileSchemaTestClass - */ -@JsonPropertyOrder({ - FileSchemaTestClass.JSON_PROPERTY_FILE, - FileSchemaTestClass.JSON_PROPERTY_FILES -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class FileSchemaTestClass { - public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; - - public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List<@Valid ModelFile> files = new ArrayList<>(); - - public FileSchemaTestClass() { - } - - public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { - - this._file = _file; - return this; - } - - /** - * Get _file - * @return _file - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_FILE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ModelFile getFile() { - return _file; - } - - - @JsonProperty(value = JSON_PROPERTY_FILE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(@javax.annotation.Nullable ModelFile _file) { - this._file = _file; - } - - public FileSchemaTestClass files(@javax.annotation.Nullable List<@Valid ModelFile> files) { - - this.files = files; - return this; - } - - public FileSchemaTestClass addFilesItem(ModelFile filesItem) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(filesItem); - return this; - } - - /** - * Get files - * @return files - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_FILES, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List<@Valid ModelFile> getFiles() { - return files; - } - - - @JsonProperty(value = JSON_PROPERTY_FILES, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(@javax.annotation.Nullable List<@Valid ModelFile> files) { - this.files = files; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o; - return Objects.equals(this._file, fileSchemaTestClass._file) && - Objects.equals(this.files, fileSchemaTestClass.files); - } - - @Override - public int hashCode() { - return Objects.hash(_file, files); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FileSchemaTestClass {\n"); - sb.append(" _file: ").append(toIndentedString(_file)).append("\n"); - sb.append(" files: ").append(toIndentedString(files)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/FormatTest.java deleted file mode 100644 index 4bf3d4b56daf..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/FormatTest.java +++ /dev/null @@ -1,561 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.File; -import java.math.BigDecimal; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.UUID; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * FormatTest - */ -@JsonPropertyOrder({ - FormatTest.JSON_PROPERTY_INTEGER, - FormatTest.JSON_PROPERTY_INT32, - FormatTest.JSON_PROPERTY_INT64, - FormatTest.JSON_PROPERTY_NUMBER, - FormatTest.JSON_PROPERTY_FLOAT, - FormatTest.JSON_PROPERTY_DOUBLE, - FormatTest.JSON_PROPERTY_STRING, - FormatTest.JSON_PROPERTY_BYTE, - FormatTest.JSON_PROPERTY_BINARY, - FormatTest.JSON_PROPERTY_DATE, - FormatTest.JSON_PROPERTY_DATE_TIME, - FormatTest.JSON_PROPERTY_UUID, - FormatTest.JSON_PROPERTY_PASSWORD, - FormatTest.JSON_PROPERTY_BIG_DECIMAL -}) -@JsonTypeName("format_test") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class FormatTest { - public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; - - public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; - - public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; - - public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; - - public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; - - public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; - - public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; - - public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; - - public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; - - public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; - - public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; - - public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; - - public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; - - public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; - @javax.annotation.Nullable - private BigDecimal bigDecimal; - - public FormatTest() { - } - - public FormatTest integer(@javax.annotation.Nullable Integer integer) { - - this.integer = integer; - return this; - } - - /** - * Get integer - * minimum: 10 - * maximum: 100 - * @return integer - */ - @javax.annotation.Nullable - @Min(10) @Max(100) - @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getInteger() { - return integer; - } - - - @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(@javax.annotation.Nullable Integer integer) { - this.integer = integer; - } - - public FormatTest int32(@javax.annotation.Nullable Integer int32) { - - this.int32 = int32; - return this; - } - - /** - * Get int32 - * minimum: 20 - * maximum: 200 - * @return int32 - */ - @javax.annotation.Nullable - @Min(20) @Max(200) - @JsonProperty(value = JSON_PROPERTY_INT32, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getInt32() { - return int32; - } - - - @JsonProperty(value = JSON_PROPERTY_INT32, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(@javax.annotation.Nullable Integer int32) { - this.int32 = int32; - } - - public FormatTest int64(@javax.annotation.Nullable Long int64) { - - this.int64 = int64; - return this; - } - - /** - * Get int64 - * @return int64 - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_INT64, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Long getInt64() { - return int64; - } - - - @JsonProperty(value = JSON_PROPERTY_INT64, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(@javax.annotation.Nullable Long int64) { - this.int64 = int64; - } - - public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { - - this.number = number; - return this; - } - - /** - * Get number - * minimum: 32.1 - * maximum: 543.2 - * @return number - */ - @javax.annotation.Nonnull - @NotNull - @Valid - @DecimalMin("32.1") @DecimalMax("543.2") - @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public BigDecimal getNumber() { - return number; - } - - - @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(@javax.annotation.Nonnull BigDecimal number) { - this.number = number; - } - - public FormatTest _float(@javax.annotation.Nullable Float _float) { - - this._float = _float; - return this; - } - - /** - * Get _float - * minimum: 54.3 - * maximum: 987.6 - * @return _float - */ - @javax.annotation.Nullable - @DecimalMin("54.3") @DecimalMax("987.6") - @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Float getFloat() { - return _float; - } - - - @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(@javax.annotation.Nullable Float _float) { - this._float = _float; - } - - public FormatTest _double(@javax.annotation.Nullable Double _double) { - - this._double = _double; - return this; - } - - /** - * Get _double - * minimum: 67.8 - * maximum: 123.4 - * @return _double - */ - @javax.annotation.Nullable - @DecimalMin("67.8") @DecimalMax("123.4") - @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Double getDouble() { - return _double; - } - - - @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(@javax.annotation.Nullable Double _double) { - this._double = _double; - } - - public FormatTest string(@javax.annotation.Nullable String string) { - - this.string = string; - return this; - } - - /** - * Get string - * @return string - */ - @javax.annotation.Nullable - @Pattern(regexp="/[a-z]/i") - @JsonProperty(value = JSON_PROPERTY_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getString() { - return string; - } - - - @JsonProperty(value = JSON_PROPERTY_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(@javax.annotation.Nullable String string) { - this.string = string; - } - - public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { - - this._byte = _byte; - return this; - } - - /** - * Get _byte - * @return _byte - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public byte[] getByte() { - return _byte; - } - - - @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(@javax.annotation.Nonnull byte[] _byte) { - this._byte = _byte; - } - - public FormatTest binary(@javax.annotation.Nullable File binary) { - - this.binary = binary; - return this; - } - - /** - * Get binary - * @return binary - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public File getBinary() { - return binary; - } - - - @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(@javax.annotation.Nullable File binary) { - this.binary = binary; - } - - public FormatTest date(@javax.annotation.Nonnull LocalDate date) { - - this.date = date; - return this; - } - - /** - * Get date - * @return date - */ - @javax.annotation.Nonnull - @NotNull - @Valid - - @JsonProperty(value = JSON_PROPERTY_DATE, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public LocalDate getDate() { - return date; - } - - - @JsonProperty(value = JSON_PROPERTY_DATE, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(@javax.annotation.Nonnull LocalDate date) { - this.date = date; - } - - public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { - - this.dateTime = dateTime; - return this; - } - - /** - * Get dateTime - * @return dateTime - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public OffsetDateTime getDateTime() { - return dateTime; - } - - - @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { - this.dateTime = dateTime; - } - - public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { - - this.uuid = uuid; - return this; - } - - /** - * Get uuid - * @return uuid - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_UUID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public UUID getUuid() { - return uuid; - } - - - @JsonProperty(value = JSON_PROPERTY_UUID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(@javax.annotation.Nullable UUID uuid) { - this.uuid = uuid; - } - - public FormatTest password(@javax.annotation.Nonnull String password) { - - this.password = password; - return this; - } - - /** - * Get password - * @return password - */ - @javax.annotation.Nonnull - @NotNull - @Size(min=10,max=64) - @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getPassword() { - return password; - } - - - @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(@javax.annotation.Nonnull String password) { - this.password = password; - } - - public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { - - this.bigDecimal = bigDecimal; - return this; - } - - /** - * Get bigDecimal - * @return bigDecimal - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getBigDecimal() { - return bigDecimal; - } - - - @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { - this.bigDecimal = bigDecimal; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FormatTest formatTest = (FormatTest) o; - return Objects.equals(this.integer, formatTest.integer) && - Objects.equals(this.int32, formatTest.int32) && - Objects.equals(this.int64, formatTest.int64) && - Objects.equals(this.number, formatTest.number) && - Objects.equals(this._float, formatTest._float) && - Objects.equals(this._double, formatTest._double) && - Objects.equals(this.string, formatTest.string) && - Arrays.equals(this._byte, formatTest._byte) && - Objects.equals(this.binary, formatTest.binary) && - Objects.equals(this.date, formatTest.date) && - Objects.equals(this.dateTime, formatTest.dateTime) && - Objects.equals(this.uuid, formatTest.uuid) && - Objects.equals(this.password, formatTest.password) && - Objects.equals(this.bigDecimal, formatTest.bigDecimal); - } - - @Override - public int hashCode() { - return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, bigDecimal); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FormatTest {\n"); - sb.append(" integer: ").append(toIndentedString(integer)).append("\n"); - sb.append(" int32: ").append(toIndentedString(int32)).append("\n"); - sb.append(" int64: ").append(toIndentedString(int64)).append("\n"); - sb.append(" number: ").append(toIndentedString(number)).append("\n"); - sb.append(" _float: ").append(toIndentedString(_float)).append("\n"); - sb.append(" _double: ").append(toIndentedString(_double)).append("\n"); - sb.append(" string: ").append(toIndentedString(string)).append("\n"); - sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n"); - sb.append(" binary: ").append(toIndentedString(binary)).append("\n"); - sb.append(" date: ").append(toIndentedString(date)).append("\n"); - sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); - sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); - sb.append(" password: ").append("*").append("\n"); - sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java deleted file mode 100644 index b4a2a4ebc977..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ /dev/null @@ -1,130 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * HasOnlyReadOnly - */ -@JsonPropertyOrder({ - HasOnlyReadOnly.JSON_PROPERTY_BAR, - HasOnlyReadOnly.JSON_PROPERTY_FOO -}) -@JsonTypeName("hasOnlyReadOnly") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class HasOnlyReadOnly { - public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; - - public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; - - public HasOnlyReadOnly() { - } - /** - * Constructor with only readonly parameters - */ - @JsonCreator - public HasOnlyReadOnly( - @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, - @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo - ) { - this(); - this.bar = bar; - this.foo = foo; - } - - /** - * Get bar - * @return bar - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_BAR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getBar() { - return bar; - } - - - - /** - * Get foo - * @return foo - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_FOO, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getFoo() { - return foo; - } - - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o; - return Objects.equals(this.bar, hasOnlyReadOnly.bar) && - Objects.equals(this.foo, hasOnlyReadOnly.foo); - } - - @Override - public int hashCode() { - return Objects.hash(bar, foo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class HasOnlyReadOnly {\n"); - sb.append(" bar: ").append(toIndentedString(bar)).append("\n"); - sb.append(" foo: ").append(toIndentedString(foo)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/MapTest.java deleted file mode 100644 index b593cbc7bc25..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/MapTest.java +++ /dev/null @@ -1,273 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * MapTest - */ -@JsonPropertyOrder({ - MapTest.JSON_PROPERTY_MAP_MAP_OF_STRING, - MapTest.JSON_PROPERTY_MAP_OF_ENUM_STRING, - MapTest.JSON_PROPERTY_DIRECT_MAP, - MapTest.JSON_PROPERTY_INDIRECT_MAP -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class MapTest { - public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); - - /** - * Gets or Sets inner - */ - public enum InnerEnum { - UPPER(String.valueOf("UPPER")), - - LOWER(String.valueOf("lower")); - - private String value; - - InnerEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static InnerEnum fromValue(String value) { - for (InnerEnum b : InnerEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); - - public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); - - public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); - - public MapTest() { - } - - public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { - - this.mapMapOfString = mapMapOfString; - return this; - } - - public MapTest putMapMapOfStringItem(String key, Map mapMapOfStringItem) { - if (this.mapMapOfString == null) { - this.mapMapOfString = new HashMap<>(); - } - this.mapMapOfString.put(key, mapMapOfStringItem); - return this; - } - - /** - * Get mapMapOfString - * @return mapMapOfString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map> getMapMapOfString() { - return mapMapOfString; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { - this.mapMapOfString = mapMapOfString; - } - - public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { - - this.mapOfEnumString = mapOfEnumString; - return this; - } - - public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) { - if (this.mapOfEnumString == null) { - this.mapOfEnumString = new HashMap<>(); - } - this.mapOfEnumString.put(key, mapOfEnumStringItem); - return this; - } - - /** - * Get mapOfEnumString - * @return mapOfEnumString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getMapOfEnumString() { - return mapOfEnumString; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { - this.mapOfEnumString = mapOfEnumString; - } - - public MapTest directMap(@javax.annotation.Nullable Map directMap) { - - this.directMap = directMap; - return this; - } - - public MapTest putDirectMapItem(String key, Boolean directMapItem) { - if (this.directMap == null) { - this.directMap = new HashMap<>(); - } - this.directMap.put(key, directMapItem); - return this; - } - - /** - * Get directMap - * @return directMap - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getDirectMap() { - return directMap; - } - - - @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(@javax.annotation.Nullable Map directMap) { - this.directMap = directMap; - } - - public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { - - this.indirectMap = indirectMap; - return this; - } - - public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { - if (this.indirectMap == null) { - this.indirectMap = new HashMap<>(); - } - this.indirectMap.put(key, indirectMapItem); - return this; - } - - /** - * Get indirectMap - * @return indirectMap - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getIndirectMap() { - return indirectMap; - } - - - @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { - this.indirectMap = indirectMap; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MapTest mapTest = (MapTest) o; - return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) && - Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) && - Objects.equals(this.directMap, mapTest.directMap) && - Objects.equals(this.indirectMap, mapTest.indirectMap); - } - - @Override - public int hashCode() { - return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MapTest {\n"); - sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n"); - sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n"); - sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n"); - sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java deleted file mode 100644 index 27462a4a0abf..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ /dev/null @@ -1,186 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import java.util.UUID; -import org.openapitools.client.model.Animal; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * MixedPropertiesAndAdditionalPropertiesClass - */ -@JsonPropertyOrder({ - MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_UUID, - MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME, - MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class MixedPropertiesAndAdditionalPropertiesClass { - public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; - - public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; - - public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map = new HashMap<>(); - - public MixedPropertiesAndAdditionalPropertiesClass() { - } - - public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { - - this.uuid = uuid; - return this; - } - - /** - * Get uuid - * @return uuid - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_UUID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public UUID getUuid() { - return uuid; - } - - - @JsonProperty(value = JSON_PROPERTY_UUID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(@javax.annotation.Nullable UUID uuid) { - this.uuid = uuid; - } - - public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { - - this.dateTime = dateTime; - return this; - } - - /** - * Get dateTime - * @return dateTime - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public OffsetDateTime getDateTime() { - return dateTime; - } - - - @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { - this.dateTime = dateTime; - } - - public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { - - this.map = map; - return this; - } - - public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) { - if (this.map == null) { - this.map = new HashMap<>(); - } - this.map.put(key, mapItem); - return this; - } - - /** - * Get map - * @return map - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MAP, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Map getMap() { - return map; - } - - - @JsonProperty(value = JSON_PROPERTY_MAP, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(@javax.annotation.Nullable Map map) { - this.map = map; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o; - return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) && - Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) && - Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map); - } - - @Override - public int hashCode() { - return Objects.hash(uuid, dateTime, map); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MixedPropertiesAndAdditionalPropertiesClass {\n"); - sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); - sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); - sb.append(" map: ").append(toIndentedString(map)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Model200Response.java deleted file mode 100644 index b38f3081cf1c..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Model200Response.java +++ /dev/null @@ -1,140 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Model for testing model name starting with number - */ -@JsonPropertyOrder({ - Model200Response.JSON_PROPERTY_NAME, - Model200Response.JSON_PROPERTY_PROPERTY_CLASS -}) -@JsonTypeName("200_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class Model200Response { - public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; - - public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; - - public Model200Response() { - } - - public Model200Response name(@javax.annotation.Nullable Integer name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getName() { - return name; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@javax.annotation.Nullable Integer name) { - this.name = name; - } - - public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { - - this.propertyClass = propertyClass; - return this; - } - - /** - * Get propertyClass - * @return propertyClass - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getPropertyClass() { - return propertyClass; - } - - - @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { - this.propertyClass = propertyClass; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Model200Response _200response = (Model200Response) o; - return Objects.equals(this.name, _200response.name) && - Objects.equals(this.propertyClass, _200response.propertyClass); - } - - @Override - public int hashCode() { - return Objects.hash(name, propertyClass); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Model200Response {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelApiResponse.java deleted file mode 100644 index 2993139bc27d..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ /dev/null @@ -1,173 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * ModelApiResponse - */ -@JsonPropertyOrder({ - ModelApiResponse.JSON_PROPERTY_CODE, - ModelApiResponse.JSON_PROPERTY_TYPE, - ModelApiResponse.JSON_PROPERTY_MESSAGE -}) -@JsonTypeName("ApiResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class ModelApiResponse { - public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; - - public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; - - public ModelApiResponse() { - } - - public ModelApiResponse code(@javax.annotation.Nullable Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * @return code - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_CODE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getCode() { - return code; - } - - - @JsonProperty(value = JSON_PROPERTY_CODE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(@javax.annotation.Nullable Integer code) { - this.code = code; - } - - public ModelApiResponse type(@javax.annotation.Nullable String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { - return type; - } - - - @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@javax.annotation.Nullable String type) { - this.type = type; - } - - public ModelApiResponse message(@javax.annotation.Nullable String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getMessage() { - return message; - } - - - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModelApiResponse _apiResponse = (ModelApiResponse) o; - return Objects.equals(this.code, _apiResponse.code) && - Objects.equals(this.type, _apiResponse.type) && - Objects.equals(this.message, _apiResponse.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, type, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ModelApiResponse {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelFile.java deleted file mode 100644 index 62d9ae4959cc..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelFile.java +++ /dev/null @@ -1,107 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Must be named `File` for test. - */ -@JsonPropertyOrder({ - ModelFile.JSON_PROPERTY_SOURCE_U_R_I -}) -@JsonTypeName("File") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class ModelFile { - public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; - - public ModelFile() { - } - - public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { - - this.sourceURI = sourceURI; - return this; - } - - /** - * Test capitalization - * @return sourceURI - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getSourceURI() { - return sourceURI; - } - - - @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(@javax.annotation.Nullable String sourceURI) { - this.sourceURI = sourceURI; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModelFile _file = (ModelFile) o; - return Objects.equals(this.sourceURI, _file.sourceURI); - } - - @Override - public int hashCode() { - return Objects.hash(sourceURI); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ModelFile {\n"); - sb.append(" sourceURI: ").append(toIndentedString(sourceURI)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelList.java deleted file mode 100644 index ee3dace7a349..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelList.java +++ /dev/null @@ -1,107 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * ModelList - */ -@JsonPropertyOrder({ - ModelList.JSON_PROPERTY_123LIST -}) -@JsonTypeName("List") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class ModelList { - public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; - - public ModelList() { - } - - public ModelList _123list(@javax.annotation.Nullable String _123list) { - - this._123list = _123list; - return this; - } - - /** - * Get _123list - * @return _123list - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String get123list() { - return _123list; - } - - - @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(@javax.annotation.Nullable String _123list) { - this._123list = _123list; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModelList _list = (ModelList) o; - return Objects.equals(this._123list, _list._123list); - } - - @Override - public int hashCode() { - return Objects.hash(_123list); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ModelList {\n"); - sb.append(" _123list: ").append(toIndentedString(_123list)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelReturn.java deleted file mode 100644 index 5eb4e979ba24..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ModelReturn.java +++ /dev/null @@ -1,107 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Model for testing reserved words - */ -@JsonPropertyOrder({ - ModelReturn.JSON_PROPERTY_RETURN -}) -@JsonTypeName("Return") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class ModelReturn { - public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; - - public ModelReturn() { - } - - public ModelReturn _return(@javax.annotation.Nullable Integer _return) { - - this._return = _return; - return this; - } - - /** - * Get _return - * @return _return - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getReturn() { - return _return; - } - - - @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(@javax.annotation.Nullable Integer _return) { - this._return = _return; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModelReturn _return = (ModelReturn) o; - return Objects.equals(this._return, _return._return); - } - - @Override - public int hashCode() { - return Objects.hash(_return); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ModelReturn {\n"); - sb.append(" _return: ").append(toIndentedString(_return)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Name.java deleted file mode 100644 index 9ce5fcc2f0b2..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Name.java +++ /dev/null @@ -1,195 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Model for testing model name same as property name - */ -@JsonPropertyOrder({ - Name.JSON_PROPERTY_NAME, - Name.JSON_PROPERTY_SNAKE_CASE, - Name.JSON_PROPERTY_PROPERTY, - Name.JSON_PROPERTY_123NUMBER -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class Name { - public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; - - public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; - - public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; - - public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; - - public Name() { - } - /** - * Constructor with only readonly parameters - */ - @JsonCreator - public Name( - @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, - @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number - ) { - this(); - this.snakeCase = snakeCase; - this._123number = _123number; - } - - public Name name(@javax.annotation.Nonnull Integer name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Integer getName() { - return name; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@javax.annotation.Nonnull Integer name) { - this.name = name; - } - - /** - * Get snakeCase - * @return snakeCase - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getSnakeCase() { - return snakeCase; - } - - - - public Name property(@javax.annotation.Nullable String property) { - - this.property = property; - return this; - } - - /** - * Get property - * @return property - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getProperty() { - return property; - } - - - @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(@javax.annotation.Nullable String property) { - this.property = property; - } - - /** - * Get _123number - * @return _123number - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer get123number() { - return _123number; - } - - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Name name = (Name) o; - return Objects.equals(this.name, name.name) && - Objects.equals(this.snakeCase, name.snakeCase) && - Objects.equals(this.property, name.property) && - Objects.equals(this._123number, name._123number); - } - - @Override - public int hashCode() { - return Objects.hash(name, snakeCase, property, _123number); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Name {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); - sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123number: ").append(toIndentedString(_123number)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/NumberOnly.java deleted file mode 100644 index e20146634d81..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/NumberOnly.java +++ /dev/null @@ -1,107 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * NumberOnly - */ -@JsonPropertyOrder({ - NumberOnly.JSON_PROPERTY_JUST_NUMBER -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class NumberOnly { - public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; - - public NumberOnly() { - } - - public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { - - this.justNumber = justNumber; - return this; - } - - /** - * Get justNumber - * @return justNumber - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getJustNumber() { - return justNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { - this.justNumber = justNumber; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NumberOnly numberOnly = (NumberOnly) o; - return Objects.equals(this.justNumber, numberOnly.justNumber); - } - - @Override - public int hashCode() { - return Objects.hash(justNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NumberOnly {\n"); - sb.append(" justNumber: ").append(toIndentedString(justNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Order.java deleted file mode 100644 index 75ac81966e65..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Order.java +++ /dev/null @@ -1,309 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * Order - */ -@JsonPropertyOrder({ - Order.JSON_PROPERTY_ID, - Order.JSON_PROPERTY_PET_ID, - Order.JSON_PROPERTY_QUANTITY, - Order.JSON_PROPERTY_SHIP_DATE, - Order.JSON_PROPERTY_STATUS, - Order.JSON_PROPERTY_COMPLETE -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class Order { - public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; - - public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; - - public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; - - public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; - - /** - * Order Status - */ - public enum StatusEnum { - PLACED(String.valueOf("placed")), - - APPROVED(String.valueOf("approved")), - - DELIVERED(String.valueOf("delivered")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; - - public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; - - public Order() { - } - - public Order id(@javax.annotation.Nullable Long id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Long getId() { - return id; - } - - - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@javax.annotation.Nullable Long id) { - this.id = id; - } - - public Order petId(@javax.annotation.Nullable Long petId) { - - this.petId = petId; - return this; - } - - /** - * Get petId - * @return petId - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Long getPetId() { - return petId; - } - - - @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(@javax.annotation.Nullable Long petId) { - this.petId = petId; - } - - public Order quantity(@javax.annotation.Nullable Integer quantity) { - - this.quantity = quantity; - return this; - } - - /** - * Get quantity - * @return quantity - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getQuantity() { - return quantity; - } - - - @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(@javax.annotation.Nullable Integer quantity) { - this.quantity = quantity; - } - - public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { - - this.shipDate = shipDate; - return this; - } - - /** - * Get shipDate - * @return shipDate - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public OffsetDateTime getShipDate() { - return shipDate; - } - - - @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { - this.shipDate = shipDate; - } - - public Order status(@javax.annotation.Nullable StatusEnum status) { - - this.status = status; - return this; - } - - /** - * Order Status - * @return status - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public StatusEnum getStatus() { - return status; - } - - - @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(@javax.annotation.Nullable StatusEnum status) { - this.status = status; - } - - public Order complete(@javax.annotation.Nullable Boolean complete) { - - this.complete = complete; - return this; - } - - /** - * Get complete - * @return complete - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean isComplete() { - return complete; - } - - - @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(@javax.annotation.Nullable Boolean complete) { - this.complete = complete; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Order order = (Order) o; - return Objects.equals(this.id, order.id) && - Objects.equals(this.petId, order.petId) && - Objects.equals(this.quantity, order.quantity) && - Objects.equals(this.shipDate, order.shipDate) && - Objects.equals(this.status, order.status) && - Objects.equals(this.complete, order.complete); - } - - @Override - public int hashCode() { - return Objects.hash(id, petId, quantity, shipDate, status, complete); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Order {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" petId: ").append(toIndentedString(petId)).append("\n"); - sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); - sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" complete: ").append(toIndentedString(complete)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/OuterComposite.java deleted file mode 100644 index db2cbfb47d87..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/OuterComposite.java +++ /dev/null @@ -1,173 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * OuterComposite - */ -@JsonPropertyOrder({ - OuterComposite.JSON_PROPERTY_MY_NUMBER, - OuterComposite.JSON_PROPERTY_MY_STRING, - OuterComposite.JSON_PROPERTY_MY_BOOLEAN -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class OuterComposite { - public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; - - public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; - - public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; - - public OuterComposite() { - } - - public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { - - this.myNumber = myNumber; - return this; - } - - /** - * Get myNumber - * @return myNumber - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getMyNumber() { - return myNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { - this.myNumber = myNumber; - } - - public OuterComposite myString(@javax.annotation.Nullable String myString) { - - this.myString = myString; - return this; - } - - /** - * Get myString - * @return myString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getMyString() { - return myString; - } - - - @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(@javax.annotation.Nullable String myString) { - this.myString = myString; - } - - public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { - - this.myBoolean = myBoolean; - return this; - } - - /** - * Get myBoolean - * @return myBoolean - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean isMyBoolean() { - return myBoolean; - } - - - @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { - this.myBoolean = myBoolean; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OuterComposite outerComposite = (OuterComposite) o; - return Objects.equals(this.myNumber, outerComposite.myNumber) && - Objects.equals(this.myString, outerComposite.myString) && - Objects.equals(this.myBoolean, outerComposite.myBoolean); - } - - @Override - public int hashCode() { - return Objects.hash(myNumber, myString, myBoolean); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OuterComposite {\n"); - sb.append(" myNumber: ").append(toIndentedString(myNumber)).append("\n"); - sb.append(" myString: ").append(toIndentedString(myString)).append("\n"); - sb.append(" myBoolean: ").append(toIndentedString(myBoolean)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/OuterEnum.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/OuterEnum.java deleted file mode 100644 index 386290bc6528..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/OuterEnum.java +++ /dev/null @@ -1,64 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets OuterEnum - */ -public enum OuterEnum { - - PLACED("placed"), - - APPROVED("approved"), - - DELIVERED("delivered"); - - private String value; - - OuterEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static OuterEnum fromValue(String value) { - for (OuterEnum b : OuterEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Pet.java index 099bd4aaf54b..1aa4e35c3f22 100644 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Pet.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 * @@ -21,12 +21,9 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; -import java.util.LinkedHashSet; import java.util.List; -import java.util.Set; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; -import tools.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import javax.validation.constraints.*; @@ -34,7 +31,7 @@ import org.hibernate.validator.constraints.*; /** - * Pet + * A pet for sale in the pet store */ @JsonPropertyOrder({ Pet.JSON_PROPERTY_ID, @@ -60,7 +57,7 @@ public class Pet { public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; @javax.annotation.Nullable @@ -190,7 +187,7 @@ public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; @@ -198,7 +195,7 @@ public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { public Pet addPhotoUrlsItem(String photoUrlsItem) { if (this.photoUrls == null) { - this.photoUrls = new LinkedHashSet<>(); + this.photoUrls = new ArrayList<>(); } this.photoUrls.add(photoUrlsItem); return this; @@ -214,15 +211,14 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Set getPhotoUrls() { + public List getPhotoUrls() { return photoUrls; } - @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } @@ -269,7 +265,9 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { /** * pet status in the store * @return status + * @deprecated */ + @Deprecated @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java deleted file mode 100644 index bc8412757f4c..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ /dev/null @@ -1,137 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * ReadOnlyFirst - */ -@JsonPropertyOrder({ - ReadOnlyFirst.JSON_PROPERTY_BAR, - ReadOnlyFirst.JSON_PROPERTY_BAZ -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class ReadOnlyFirst { - public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; - - public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; - - public ReadOnlyFirst() { - } - /** - * Constructor with only readonly parameters - */ - @JsonCreator - public ReadOnlyFirst( - @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar - ) { - this(); - this.bar = bar; - } - - /** - * Get bar - * @return bar - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_BAR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getBar() { - return bar; - } - - - - public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { - - this.baz = baz; - return this; - } - - /** - * Get baz - * @return baz - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getBaz() { - return baz; - } - - - @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(@javax.annotation.Nullable String baz) { - this.baz = baz; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o; - return Objects.equals(this.bar, readOnlyFirst.bar) && - Objects.equals(this.baz, readOnlyFirst.baz); - } - - @Override - public int hashCode() { - return Objects.hash(bar, baz); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReadOnlyFirst {\n"); - sb.append(" bar: ").append(toIndentedString(bar)).append("\n"); - sb.append(" baz: ").append(toIndentedString(baz)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/SpecialModelName.java deleted file mode 100644 index bc7d68f0f416..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ /dev/null @@ -1,107 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * SpecialModelName - */ -@JsonPropertyOrder({ - SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME -}) -@JsonTypeName("$special[model.name]") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class SpecialModelName { - public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; - - public SpecialModelName() { - } - - public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { - - this.$specialPropertyName = $specialPropertyName; - return this; - } - - /** - * Get $specialPropertyName - * @return $specialPropertyName - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Long get$SpecialPropertyName() { - return $specialPropertyName; - } - - - @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { - this.$specialPropertyName = $specialPropertyName; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SpecialModelName $specialModelName = (SpecialModelName) o; - return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName); - } - - @Override - public int hashCode() { - return Objects.hash($specialPropertyName); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SpecialModelName {\n"); - sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Tag.java index 7999e0f2fa76..3c4eb31d868d 100644 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/Tag.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 * @@ -26,7 +26,7 @@ import org.hibernate.validator.constraints.*; /** - * Tag + * A tag for a pet */ @JsonPropertyOrder({ Tag.JSON_PROPERTY_ID, diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java deleted file mode 100644 index e3d8b8a0aedd..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ /dev/null @@ -1,255 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * TypeHolderDefault - */ -@JsonPropertyOrder({ - TypeHolderDefault.JSON_PROPERTY_STRING_ITEM, - TypeHolderDefault.JSON_PROPERTY_NUMBER_ITEM, - TypeHolderDefault.JSON_PROPERTY_INTEGER_ITEM, - TypeHolderDefault.JSON_PROPERTY_BOOL_ITEM, - TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class TypeHolderDefault { - public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem = "what"; - - public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; - - public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; - - public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem = true; - - public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); - - public TypeHolderDefault() { - } - - public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { - - this.stringItem = stringItem; - return this; - } - - /** - * Get stringItem - * @return stringItem - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getStringItem() { - return stringItem; - } - - - @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(@javax.annotation.Nonnull String stringItem) { - this.stringItem = stringItem; - } - - public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { - - this.numberItem = numberItem; - return this; - } - - /** - * Get numberItem - * @return numberItem - */ - @javax.annotation.Nonnull - @NotNull - @Valid - - @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public BigDecimal getNumberItem() { - return numberItem; - } - - - @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { - this.numberItem = numberItem; - } - - public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { - - this.integerItem = integerItem; - return this; - } - - /** - * Get integerItem - * @return integerItem - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Integer getIntegerItem() { - return integerItem; - } - - - @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { - this.integerItem = integerItem; - } - - public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { - - this.boolItem = boolItem; - return this; - } - - /** - * Get boolItem - * @return boolItem - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Boolean isBoolItem() { - return boolItem; - } - - - @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { - this.boolItem = boolItem; - } - - public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { - - this.arrayItem = arrayItem; - return this; - } - - public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { - if (this.arrayItem == null) { - this.arrayItem = new ArrayList<>(); - } - this.arrayItem.add(arrayItemItem); - return this; - } - - /** - * Get arrayItem - * @return arrayItem - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public List getArrayItem() { - return arrayItem; - } - - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { - this.arrayItem = arrayItem; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o; - return Objects.equals(this.stringItem, typeHolderDefault.stringItem) && - Objects.equals(this.numberItem, typeHolderDefault.numberItem) && - Objects.equals(this.integerItem, typeHolderDefault.integerItem) && - Objects.equals(this.boolItem, typeHolderDefault.boolItem) && - Objects.equals(this.arrayItem, typeHolderDefault.arrayItem); - } - - @Override - public int hashCode() { - return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TypeHolderDefault {\n"); - sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n"); - sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n"); - sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n"); - sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n"); - sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/TypeHolderExample.java deleted file mode 100644 index 6f391e9f202d..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ /dev/null @@ -1,289 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * TypeHolderExample - */ -@JsonPropertyOrder({ - TypeHolderExample.JSON_PROPERTY_STRING_ITEM, - TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM, - TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM, - TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM, - TypeHolderExample.JSON_PROPERTY_BOOL_ITEM, - TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class TypeHolderExample { - public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem; - - public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; - - public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; - @javax.annotation.Nonnull - private Float floatItem; - - public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; - - public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem; - - public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); - - public TypeHolderExample() { - } - - public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { - - this.stringItem = stringItem; - return this; - } - - /** - * Get stringItem - * @return stringItem - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getStringItem() { - return stringItem; - } - - - @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(@javax.annotation.Nonnull String stringItem) { - this.stringItem = stringItem; - } - - public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { - - this.numberItem = numberItem; - return this; - } - - /** - * Get numberItem - * @return numberItem - */ - @javax.annotation.Nonnull - @NotNull - @Valid - - @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public BigDecimal getNumberItem() { - return numberItem; - } - - - @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { - this.numberItem = numberItem; - } - - public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { - - this.floatItem = floatItem; - return this; - } - - /** - * Get floatItem - * @return floatItem - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Float getFloatItem() { - return floatItem; - } - - - @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { - this.floatItem = floatItem; - } - - public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { - - this.integerItem = integerItem; - return this; - } - - /** - * Get integerItem - * @return integerItem - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Integer getIntegerItem() { - return integerItem; - } - - - @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { - this.integerItem = integerItem; - } - - public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { - - this.boolItem = boolItem; - return this; - } - - /** - * Get boolItem - * @return boolItem - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Boolean isBoolItem() { - return boolItem; - } - - - @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { - this.boolItem = boolItem; - } - - public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { - - this.arrayItem = arrayItem; - return this; - } - - public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { - if (this.arrayItem == null) { - this.arrayItem = new ArrayList<>(); - } - this.arrayItem.add(arrayItemItem); - return this; - } - - /** - * Get arrayItem - * @return arrayItem - */ - @javax.annotation.Nonnull - @NotNull - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public List getArrayItem() { - return arrayItem; - } - - - @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { - this.arrayItem = arrayItem; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TypeHolderExample typeHolderExample = (TypeHolderExample) o; - return Objects.equals(this.stringItem, typeHolderExample.stringItem) && - Objects.equals(this.numberItem, typeHolderExample.numberItem) && - Objects.equals(this.floatItem, typeHolderExample.floatItem) && - Objects.equals(this.integerItem, typeHolderExample.integerItem) && - Objects.equals(this.boolItem, typeHolderExample.boolItem) && - Objects.equals(this.arrayItem, typeHolderExample.arrayItem); - } - - @Override - public int hashCode() { - return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TypeHolderExample {\n"); - sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n"); - sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n"); - sb.append(" floatItem: ").append(toIndentedString(floatItem)).append("\n"); - sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n"); - sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n"); - sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/User.java deleted file mode 100644 index 09048a5a017d..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/User.java +++ /dev/null @@ -1,336 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * User - */ -@JsonPropertyOrder({ - User.JSON_PROPERTY_ID, - User.JSON_PROPERTY_USERNAME, - User.JSON_PROPERTY_FIRST_NAME, - User.JSON_PROPERTY_LAST_NAME, - User.JSON_PROPERTY_EMAIL, - User.JSON_PROPERTY_PASSWORD, - User.JSON_PROPERTY_PHONE, - User.JSON_PROPERTY_USER_STATUS -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class User { - public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; - - public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; - - public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; - - public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; - - public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; - - public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; - - public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; - - public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; - - public User() { - } - - public User id(@javax.annotation.Nullable Long id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Long getId() { - return id; - } - - - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@javax.annotation.Nullable Long id) { - this.id = id; - } - - public User username(@javax.annotation.Nullable String username) { - - this.username = username; - return this; - } - - /** - * Get username - * @return username - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getUsername() { - return username; - } - - - @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(@javax.annotation.Nullable String username) { - this.username = username; - } - - public User firstName(@javax.annotation.Nullable String firstName) { - - this.firstName = firstName; - return this; - } - - /** - * Get firstName - * @return firstName - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getFirstName() { - return firstName; - } - - - @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(@javax.annotation.Nullable String firstName) { - this.firstName = firstName; - } - - public User lastName(@javax.annotation.Nullable String lastName) { - - this.lastName = lastName; - return this; - } - - /** - * Get lastName - * @return lastName - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getLastName() { - return lastName; - } - - - @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(@javax.annotation.Nullable String lastName) { - this.lastName = lastName; - } - - public User email(@javax.annotation.Nullable String email) { - - this.email = email; - return this; - } - - /** - * Get email - * @return email - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getEmail() { - return email; - } - - - @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(@javax.annotation.Nullable String email) { - this.email = email; - } - - public User password(@javax.annotation.Nullable String password) { - - this.password = password; - return this; - } - - /** - * Get password - * @return password - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getPassword() { - return password; - } - - - @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(@javax.annotation.Nullable String password) { - this.password = password; - } - - public User phone(@javax.annotation.Nullable String phone) { - - this.phone = phone; - return this; - } - - /** - * Get phone - * @return phone - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getPhone() { - return phone; - } - - - @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(@javax.annotation.Nullable String phone) { - this.phone = phone; - } - - public User userStatus(@javax.annotation.Nullable Integer userStatus) { - - this.userStatus = userStatus; - return this; - } - - /** - * User Status - * @return userStatus - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getUserStatus() { - return userStatus; - } - - - @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { - this.userStatus = userStatus; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - User user = (User) o; - return Objects.equals(this.id, user.id) && - Objects.equals(this.username, user.username) && - Objects.equals(this.firstName, user.firstName) && - Objects.equals(this.lastName, user.lastName) && - Objects.equals(this.email, user.email) && - Objects.equals(this.password, user.password) && - Objects.equals(this.phone, user.phone) && - Objects.equals(this.userStatus, user.userStatus); - } - - @Override - public int hashCode() { - return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class User {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" username: ").append(toIndentedString(username)).append("\n"); - sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); - sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); - sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/XmlItem.java deleted file mode 100644 index 726f5434014c..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/main/java/org/openapitools/client/model/XmlItem.java +++ /dev/null @@ -1,1110 +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.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; -import javax.validation.constraints.*; -import javax.validation.Valid; -import org.hibernate.validator.constraints.*; - -/** - * XmlItem - */ -@JsonPropertyOrder({ - XmlItem.JSON_PROPERTY_ATTRIBUTE_STRING, - XmlItem.JSON_PROPERTY_ATTRIBUTE_NUMBER, - XmlItem.JSON_PROPERTY_ATTRIBUTE_INTEGER, - XmlItem.JSON_PROPERTY_ATTRIBUTE_BOOLEAN, - XmlItem.JSON_PROPERTY_WRAPPED_ARRAY, - XmlItem.JSON_PROPERTY_NAME_STRING, - XmlItem.JSON_PROPERTY_NAME_NUMBER, - XmlItem.JSON_PROPERTY_NAME_INTEGER, - XmlItem.JSON_PROPERTY_NAME_BOOLEAN, - XmlItem.JSON_PROPERTY_NAME_ARRAY, - XmlItem.JSON_PROPERTY_NAME_WRAPPED_ARRAY, - XmlItem.JSON_PROPERTY_PREFIX_STRING, - XmlItem.JSON_PROPERTY_PREFIX_NUMBER, - XmlItem.JSON_PROPERTY_PREFIX_INTEGER, - XmlItem.JSON_PROPERTY_PREFIX_BOOLEAN, - XmlItem.JSON_PROPERTY_PREFIX_ARRAY, - XmlItem.JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, - XmlItem.JSON_PROPERTY_NAMESPACE_STRING, - XmlItem.JSON_PROPERTY_NAMESPACE_NUMBER, - XmlItem.JSON_PROPERTY_NAMESPACE_INTEGER, - XmlItem.JSON_PROPERTY_NAMESPACE_BOOLEAN, - XmlItem.JSON_PROPERTY_NAMESPACE_ARRAY, - XmlItem.JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, - XmlItem.JSON_PROPERTY_PREFIX_NS_STRING, - XmlItem.JSON_PROPERTY_PREFIX_NS_NUMBER, - XmlItem.JSON_PROPERTY_PREFIX_NS_INTEGER, - XmlItem.JSON_PROPERTY_PREFIX_NS_BOOLEAN, - XmlItem.JSON_PROPERTY_PREFIX_NS_ARRAY, - XmlItem.JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0-SNAPSHOT") -public class XmlItem { - public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @javax.annotation.Nullable - private String attributeString; - - public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @javax.annotation.Nullable - private BigDecimal attributeNumber; - - public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @javax.annotation.Nullable - private Integer attributeInteger; - - public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @javax.annotation.Nullable - private Boolean attributeBoolean; - - public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); - - public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @javax.annotation.Nullable - private String nameString; - - public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @javax.annotation.Nullable - private BigDecimal nameNumber; - - public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @javax.annotation.Nullable - private Integer nameInteger; - - public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @javax.annotation.Nullable - private Boolean nameBoolean; - - public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); - - public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); - - public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @javax.annotation.Nullable - private String prefixString; - - public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @javax.annotation.Nullable - private BigDecimal prefixNumber; - - public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @javax.annotation.Nullable - private Integer prefixInteger; - - public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @javax.annotation.Nullable - private Boolean prefixBoolean; - - public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); - - public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); - - public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @javax.annotation.Nullable - private String namespaceString; - - public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @javax.annotation.Nullable - private BigDecimal namespaceNumber; - - public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @javax.annotation.Nullable - private Integer namespaceInteger; - - public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @javax.annotation.Nullable - private Boolean namespaceBoolean; - - public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); - - public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); - - public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @javax.annotation.Nullable - private String prefixNsString; - - public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; - - public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @javax.annotation.Nullable - private Integer prefixNsInteger; - - public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @javax.annotation.Nullable - private Boolean prefixNsBoolean; - - public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); - - public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); - - public XmlItem() { - } - - public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { - - this.attributeString = attributeString; - return this; - } - - /** - * Get attributeString - * @return attributeString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getAttributeString() { - return attributeString; - } - - - @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeString(@javax.annotation.Nullable String attributeString) { - this.attributeString = attributeString; - } - - public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { - - this.attributeNumber = attributeNumber; - return this; - } - - /** - * Get attributeNumber - * @return attributeNumber - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getAttributeNumber() { - return attributeNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { - this.attributeNumber = attributeNumber; - } - - public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { - - this.attributeInteger = attributeInteger; - return this; - } - - /** - * Get attributeInteger - * @return attributeInteger - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getAttributeInteger() { - return attributeInteger; - } - - - @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { - this.attributeInteger = attributeInteger; - } - - public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { - - this.attributeBoolean = attributeBoolean; - return this; - } - - /** - * Get attributeBoolean - * @return attributeBoolean - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean isAttributeBoolean() { - return attributeBoolean; - } - - - @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { - this.attributeBoolean = attributeBoolean; - } - - public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { - - this.wrappedArray = wrappedArray; - return this; - } - - public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { - if (this.wrappedArray == null) { - this.wrappedArray = new ArrayList<>(); - } - this.wrappedArray.add(wrappedArrayItem); - return this; - } - - /** - * Get wrappedArray - * @return wrappedArray - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getWrappedArray() { - return wrappedArray; - } - - - @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { - this.wrappedArray = wrappedArray; - } - - public XmlItem nameString(@javax.annotation.Nullable String nameString) { - - this.nameString = nameString; - return this; - } - - /** - * Get nameString - * @return nameString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getNameString() { - return nameString; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameString(@javax.annotation.Nullable String nameString) { - this.nameString = nameString; - } - - public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { - - this.nameNumber = nameNumber; - return this; - } - - /** - * Get nameNumber - * @return nameNumber - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getNameNumber() { - return nameNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { - this.nameNumber = nameNumber; - } - - public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { - - this.nameInteger = nameInteger; - return this; - } - - /** - * Get nameInteger - * @return nameInteger - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getNameInteger() { - return nameInteger; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { - this.nameInteger = nameInteger; - } - - public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { - - this.nameBoolean = nameBoolean; - return this; - } - - /** - * Get nameBoolean - * @return nameBoolean - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean isNameBoolean() { - return nameBoolean; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { - this.nameBoolean = nameBoolean; - } - - public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { - - this.nameArray = nameArray; - return this; - } - - public XmlItem addNameArrayItem(Integer nameArrayItem) { - if (this.nameArray == null) { - this.nameArray = new ArrayList<>(); - } - this.nameArray.add(nameArrayItem); - return this; - } - - /** - * Get nameArray - * @return nameArray - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getNameArray() { - return nameArray; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameArray(@javax.annotation.Nullable List nameArray) { - this.nameArray = nameArray; - } - - public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { - - this.nameWrappedArray = nameWrappedArray; - return this; - } - - public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { - if (this.nameWrappedArray == null) { - this.nameWrappedArray = new ArrayList<>(); - } - this.nameWrappedArray.add(nameWrappedArrayItem); - return this; - } - - /** - * Get nameWrappedArray - * @return nameWrappedArray - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getNameWrappedArray() { - return nameWrappedArray; - } - - - @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { - this.nameWrappedArray = nameWrappedArray; - } - - public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { - - this.prefixString = prefixString; - return this; - } - - /** - * Get prefixString - * @return prefixString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getPrefixString() { - return prefixString; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixString(@javax.annotation.Nullable String prefixString) { - this.prefixString = prefixString; - } - - public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { - - this.prefixNumber = prefixNumber; - return this; - } - - /** - * Get prefixNumber - * @return prefixNumber - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getPrefixNumber() { - return prefixNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { - this.prefixNumber = prefixNumber; - } - - public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { - - this.prefixInteger = prefixInteger; - return this; - } - - /** - * Get prefixInteger - * @return prefixInteger - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getPrefixInteger() { - return prefixInteger; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { - this.prefixInteger = prefixInteger; - } - - public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { - - this.prefixBoolean = prefixBoolean; - return this; - } - - /** - * Get prefixBoolean - * @return prefixBoolean - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean isPrefixBoolean() { - return prefixBoolean; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { - this.prefixBoolean = prefixBoolean; - } - - public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { - - this.prefixArray = prefixArray; - return this; - } - - public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { - if (this.prefixArray == null) { - this.prefixArray = new ArrayList<>(); - } - this.prefixArray.add(prefixArrayItem); - return this; - } - - /** - * Get prefixArray - * @return prefixArray - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getPrefixArray() { - return prefixArray; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { - this.prefixArray = prefixArray; - } - - public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { - - this.prefixWrappedArray = prefixWrappedArray; - return this; - } - - public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { - if (this.prefixWrappedArray == null) { - this.prefixWrappedArray = new ArrayList<>(); - } - this.prefixWrappedArray.add(prefixWrappedArrayItem); - return this; - } - - /** - * Get prefixWrappedArray - * @return prefixWrappedArray - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getPrefixWrappedArray() { - return prefixWrappedArray; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { - this.prefixWrappedArray = prefixWrappedArray; - } - - public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { - - this.namespaceString = namespaceString; - return this; - } - - /** - * Get namespaceString - * @return namespaceString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getNamespaceString() { - return namespaceString; - } - - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { - this.namespaceString = namespaceString; - } - - public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { - - this.namespaceNumber = namespaceNumber; - return this; - } - - /** - * Get namespaceNumber - * @return namespaceNumber - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getNamespaceNumber() { - return namespaceNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { - this.namespaceNumber = namespaceNumber; - } - - public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { - - this.namespaceInteger = namespaceInteger; - return this; - } - - /** - * Get namespaceInteger - * @return namespaceInteger - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getNamespaceInteger() { - return namespaceInteger; - } - - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { - this.namespaceInteger = namespaceInteger; - } - - public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { - - this.namespaceBoolean = namespaceBoolean; - return this; - } - - /** - * Get namespaceBoolean - * @return namespaceBoolean - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean isNamespaceBoolean() { - return namespaceBoolean; - } - - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { - this.namespaceBoolean = namespaceBoolean; - } - - public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { - - this.namespaceArray = namespaceArray; - return this; - } - - public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { - if (this.namespaceArray == null) { - this.namespaceArray = new ArrayList<>(); - } - this.namespaceArray.add(namespaceArrayItem); - return this; - } - - /** - * Get namespaceArray - * @return namespaceArray - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getNamespaceArray() { - return namespaceArray; - } - - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { - this.namespaceArray = namespaceArray; - } - - public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { - - this.namespaceWrappedArray = namespaceWrappedArray; - return this; - } - - public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { - if (this.namespaceWrappedArray == null) { - this.namespaceWrappedArray = new ArrayList<>(); - } - this.namespaceWrappedArray.add(namespaceWrappedArrayItem); - return this; - } - - /** - * Get namespaceWrappedArray - * @return namespaceWrappedArray - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getNamespaceWrappedArray() { - return namespaceWrappedArray; - } - - - @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { - this.namespaceWrappedArray = namespaceWrappedArray; - } - - public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { - - this.prefixNsString = prefixNsString; - return this; - } - - /** - * Get prefixNsString - * @return prefixNsString - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getPrefixNsString() { - return prefixNsString; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { - this.prefixNsString = prefixNsString; - } - - public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { - - this.prefixNsNumber = prefixNsNumber; - return this; - } - - /** - * Get prefixNsNumber - * @return prefixNsNumber - */ - @javax.annotation.Nullable - @Valid - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getPrefixNsNumber() { - return prefixNsNumber; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { - this.prefixNsNumber = prefixNsNumber; - } - - public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { - - this.prefixNsInteger = prefixNsInteger; - return this; - } - - /** - * Get prefixNsInteger - * @return prefixNsInteger - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getPrefixNsInteger() { - return prefixNsInteger; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { - this.prefixNsInteger = prefixNsInteger; - } - - public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { - - this.prefixNsBoolean = prefixNsBoolean; - return this; - } - - /** - * Get prefixNsBoolean - * @return prefixNsBoolean - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean isPrefixNsBoolean() { - return prefixNsBoolean; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { - this.prefixNsBoolean = prefixNsBoolean; - } - - public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { - - this.prefixNsArray = prefixNsArray; - return this; - } - - public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { - if (this.prefixNsArray == null) { - this.prefixNsArray = new ArrayList<>(); - } - this.prefixNsArray.add(prefixNsArrayItem); - return this; - } - - /** - * Get prefixNsArray - * @return prefixNsArray - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getPrefixNsArray() { - return prefixNsArray; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { - this.prefixNsArray = prefixNsArray; - } - - public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { - - this.prefixNsWrappedArray = prefixNsWrappedArray; - return this; - } - - public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { - if (this.prefixNsWrappedArray == null) { - this.prefixNsWrappedArray = new ArrayList<>(); - } - this.prefixNsWrappedArray.add(prefixNsWrappedArrayItem); - return this; - } - - /** - * Get prefixNsWrappedArray - * @return prefixNsWrappedArray - */ - @javax.annotation.Nullable - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getPrefixNsWrappedArray() { - return prefixNsWrappedArray; - } - - - @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { - this.prefixNsWrappedArray = prefixNsWrappedArray; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - XmlItem xmlItem = (XmlItem) o; - return Objects.equals(this.attributeString, xmlItem.attributeString) && - Objects.equals(this.attributeNumber, xmlItem.attributeNumber) && - Objects.equals(this.attributeInteger, xmlItem.attributeInteger) && - Objects.equals(this.attributeBoolean, xmlItem.attributeBoolean) && - Objects.equals(this.wrappedArray, xmlItem.wrappedArray) && - Objects.equals(this.nameString, xmlItem.nameString) && - Objects.equals(this.nameNumber, xmlItem.nameNumber) && - Objects.equals(this.nameInteger, xmlItem.nameInteger) && - Objects.equals(this.nameBoolean, xmlItem.nameBoolean) && - Objects.equals(this.nameArray, xmlItem.nameArray) && - Objects.equals(this.nameWrappedArray, xmlItem.nameWrappedArray) && - Objects.equals(this.prefixString, xmlItem.prefixString) && - Objects.equals(this.prefixNumber, xmlItem.prefixNumber) && - Objects.equals(this.prefixInteger, xmlItem.prefixInteger) && - Objects.equals(this.prefixBoolean, xmlItem.prefixBoolean) && - Objects.equals(this.prefixArray, xmlItem.prefixArray) && - Objects.equals(this.prefixWrappedArray, xmlItem.prefixWrappedArray) && - Objects.equals(this.namespaceString, xmlItem.namespaceString) && - Objects.equals(this.namespaceNumber, xmlItem.namespaceNumber) && - Objects.equals(this.namespaceInteger, xmlItem.namespaceInteger) && - Objects.equals(this.namespaceBoolean, xmlItem.namespaceBoolean) && - Objects.equals(this.namespaceArray, xmlItem.namespaceArray) && - Objects.equals(this.namespaceWrappedArray, xmlItem.namespaceWrappedArray) && - Objects.equals(this.prefixNsString, xmlItem.prefixNsString) && - Objects.equals(this.prefixNsNumber, xmlItem.prefixNsNumber) && - Objects.equals(this.prefixNsInteger, xmlItem.prefixNsInteger) && - Objects.equals(this.prefixNsBoolean, xmlItem.prefixNsBoolean) && - Objects.equals(this.prefixNsArray, xmlItem.prefixNsArray) && - Objects.equals(this.prefixNsWrappedArray, xmlItem.prefixNsWrappedArray); - } - - @Override - public int hashCode() { - return Objects.hash(attributeString, attributeNumber, attributeInteger, attributeBoolean, wrappedArray, nameString, nameNumber, nameInteger, nameBoolean, nameArray, nameWrappedArray, prefixString, prefixNumber, prefixInteger, prefixBoolean, prefixArray, prefixWrappedArray, namespaceString, namespaceNumber, namespaceInteger, namespaceBoolean, namespaceArray, namespaceWrappedArray, prefixNsString, prefixNsNumber, prefixNsInteger, prefixNsBoolean, prefixNsArray, prefixNsWrappedArray); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class XmlItem {\n"); - sb.append(" attributeString: ").append(toIndentedString(attributeString)).append("\n"); - sb.append(" attributeNumber: ").append(toIndentedString(attributeNumber)).append("\n"); - sb.append(" attributeInteger: ").append(toIndentedString(attributeInteger)).append("\n"); - sb.append(" attributeBoolean: ").append(toIndentedString(attributeBoolean)).append("\n"); - sb.append(" wrappedArray: ").append(toIndentedString(wrappedArray)).append("\n"); - sb.append(" nameString: ").append(toIndentedString(nameString)).append("\n"); - sb.append(" nameNumber: ").append(toIndentedString(nameNumber)).append("\n"); - sb.append(" nameInteger: ").append(toIndentedString(nameInteger)).append("\n"); - sb.append(" nameBoolean: ").append(toIndentedString(nameBoolean)).append("\n"); - sb.append(" nameArray: ").append(toIndentedString(nameArray)).append("\n"); - sb.append(" nameWrappedArray: ").append(toIndentedString(nameWrappedArray)).append("\n"); - sb.append(" prefixString: ").append(toIndentedString(prefixString)).append("\n"); - sb.append(" prefixNumber: ").append(toIndentedString(prefixNumber)).append("\n"); - sb.append(" prefixInteger: ").append(toIndentedString(prefixInteger)).append("\n"); - sb.append(" prefixBoolean: ").append(toIndentedString(prefixBoolean)).append("\n"); - sb.append(" prefixArray: ").append(toIndentedString(prefixArray)).append("\n"); - sb.append(" prefixWrappedArray: ").append(toIndentedString(prefixWrappedArray)).append("\n"); - sb.append(" namespaceString: ").append(toIndentedString(namespaceString)).append("\n"); - sb.append(" namespaceNumber: ").append(toIndentedString(namespaceNumber)).append("\n"); - sb.append(" namespaceInteger: ").append(toIndentedString(namespaceInteger)).append("\n"); - sb.append(" namespaceBoolean: ").append(toIndentedString(namespaceBoolean)).append("\n"); - sb.append(" namespaceArray: ").append(toIndentedString(namespaceArray)).append("\n"); - sb.append(" namespaceWrappedArray: ").append(toIndentedString(namespaceWrappedArray)).append("\n"); - sb.append(" prefixNsString: ").append(toIndentedString(prefixNsString)).append("\n"); - sb.append(" prefixNsNumber: ").append(toIndentedString(prefixNsNumber)).append("\n"); - sb.append(" prefixNsInteger: ").append(toIndentedString(prefixNsInteger)).append("\n"); - sb.append(" prefixNsBoolean: ").append(toIndentedString(prefixNsBoolean)).append("\n"); - sb.append(" prefixNsArray: ").append(toIndentedString(prefixNsArray)).append("\n"); - sb.append(" prefixNsWrappedArray: ").append(toIndentedString(prefixNsWrappedArray)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java deleted file mode 100644 index 83017aa42d76..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ /dev/null @@ -1,70 +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 org.openapitools.client.ApiClient; -import org.openapitools.client.api.AnotherFakeApi; -import io.restassured.builder.RequestSpecBuilder; -import io.restassured.filter.log.ErrorLoggingFilter; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.validation.constraints.*; -import javax.validation.Valid; - -import static io.restassured.config.ObjectMapperConfig.objectMapperConfig; -import static io.restassured.config.RestAssuredConfig.config; -import static org.openapitools.client.JacksonObjectMapper.jackson; - -/** - * API tests for AnotherFakeApi - */ -@Disabled -public class AnotherFakeApiTest { - - private AnotherFakeApi api; - - @BeforeEach - public void createApi() { - api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier( - () -> new RequestSpecBuilder() - .setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(jackson()))) - .addFilter(new ErrorLoggingFilter()) - .setBaseUri("http://petstore.swagger.io:80/v2"))).anotherFake(); - } - - /** - * successful operation - */ - @Test - public void shouldSee200AfterCall123testSpecialTags() { - String uuidTest = null; - Client body = null; - api.call123testSpecialTags() - .uuidTestHeader(uuidTest) - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/FakeApiTest.java deleted file mode 100644 index 0cd983b1b7f9..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ /dev/null @@ -1,312 +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 org.openapitools.client.ApiClient; -import org.openapitools.client.api.FakeApi; -import io.restassured.builder.RequestSpecBuilder; -import io.restassured.filter.log.ErrorLoggingFilter; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.validation.constraints.*; -import javax.validation.Valid; - -import static io.restassured.config.ObjectMapperConfig.objectMapperConfig; -import static io.restassured.config.RestAssuredConfig.config; -import static org.openapitools.client.JacksonObjectMapper.jackson; - -/** - * API tests for FakeApi - */ -@Disabled -public class FakeApiTest { - - private FakeApi api; - - @BeforeEach - public void createApi() { - api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier( - () -> new RequestSpecBuilder() - .setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(jackson()))) - .addFilter(new ErrorLoggingFilter()) - .setBaseUri("http://petstore.swagger.io:80/v2"))).fake(); - } - - /** - * successful operation - */ - @Test - public void shouldSee200AfterCreateXmlItem() { - XmlItem xmlItem = null; - api.createXmlItem() - .body(xmlItem).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Output boolean - */ - @Test - public void shouldSee200AfterFakeOuterBooleanSerialize() { - Boolean body = null; - api.fakeOuterBooleanSerialize().execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Output composite - */ - @Test - public void shouldSee200AfterFakeOuterCompositeSerialize() { - OuterComposite body = null; - api.fakeOuterCompositeSerialize().execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Output number - */ - @Test - public void shouldSee200AfterFakeOuterNumberSerialize() { - BigDecimal body = null; - api.fakeOuterNumberSerialize().execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Output string - */ - @Test - public void shouldSee200AfterFakeOuterStringSerialize() { - String body = null; - api.fakeOuterStringSerialize().execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Success - */ - @Test - public void shouldSee200AfterTestBodyWithFileSchema() { - FileSchemaTestClass body = null; - api.testBodyWithFileSchema() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Success - */ - @Test - public void shouldSee200AfterTestBodyWithQueryParams() { - String query = null; - User body = null; - api.testBodyWithQueryParams() - .queryQuery(query) - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterTestClientModel() { - Client body = null; - api.testClientModel() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Invalid username supplied - */ - @Test - public void shouldSee400AfterTestEndpointParameters() { - BigDecimal number = null; - Double _double = null; - String patternWithoutDelimiter = null; - byte[] _byte = null; - Integer integer = null; - Integer int32 = null; - Long int64 = null; - Float _float = null; - String string = null; - File binary = null; - LocalDate date = null; - OffsetDateTime dateTime = null; - String password = null; - String paramCallback = null; - api.testEndpointParameters() - .numberForm(number) - ._doubleForm(_double) - .patternWithoutDelimiterForm(patternWithoutDelimiter) - ._byteForm(_byte).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * User not found - */ - @Test - public void shouldSee404AfterTestEndpointParameters() { - BigDecimal number = null; - Double _double = null; - String patternWithoutDelimiter = null; - byte[] _byte = null; - Integer integer = null; - Integer int32 = null; - Long int64 = null; - Float _float = null; - String string = null; - File binary = null; - LocalDate date = null; - OffsetDateTime dateTime = null; - String password = null; - String paramCallback = null; - api.testEndpointParameters() - .numberForm(number) - ._doubleForm(_double) - .patternWithoutDelimiterForm(patternWithoutDelimiter) - ._byteForm(_byte).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Invalid request - */ - @Test - public void shouldSee400AfterTestEnumParameters() { - String enumHeaderStringArray = null; - String enumHeaderString = null; - List enumQueryStringArray = null; - String enumQueryString = null; - Integer enumQueryInteger = null; - Double enumQueryDouble = null; - List enumFormStringArray = null; - String enumFormString = null; - api.testEnumParameters().execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Not found - */ - @Test - public void shouldSee404AfterTestEnumParameters() { - String enumHeaderStringArray = null; - String enumHeaderString = null; - List enumQueryStringArray = null; - String enumQueryString = null; - Integer enumQueryInteger = null; - Double enumQueryDouble = null; - List enumFormStringArray = null; - String enumFormString = null; - api.testEnumParameters().execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Something wrong - */ - @Test - public void shouldSee400AfterTestGroupParameters() { - Integer requiredStringGroup = null; - String requiredBooleanGroup = null; - Long requiredInt64Group = null; - Integer stringGroup = null; - String booleanGroup = null; - Long int64Group = null; - api.testGroupParameters() - .requiredStringGroupQuery(requiredStringGroup) - .requiredBooleanGroupHeader(requiredBooleanGroup) - .requiredInt64GroupQuery(requiredInt64Group).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterTestInlineAdditionalProperties() { - Map param = null; - api.testInlineAdditionalProperties() - .body(param).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterTestJsonFormData() { - String param = null; - String param2 = null; - api.testJsonFormData() - .paramForm(param) - .param2Form(param2).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Success - */ - @Test - public void shouldSee200AfterTestQueryParameterCollectionFormat() { - List pipe = null; - List ioutil = null; - List http = null; - List url = null; - List context = null; - api.testQueryParameterCollectionFormat() - .pipeQuery(pipe) - .ioutilQuery(ioutil) - .httpQuery(http) - .urlQuery(url) - .contextQuery(context).execute(r -> r.prettyPeek()); - // TODO: test validations - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java deleted file mode 100644 index a3568486879b..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ /dev/null @@ -1,67 +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 org.openapitools.client.ApiClient; -import org.openapitools.client.api.FakeClassnameTags123Api; -import io.restassured.builder.RequestSpecBuilder; -import io.restassured.filter.log.ErrorLoggingFilter; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.validation.constraints.*; -import javax.validation.Valid; - -import static io.restassured.config.ObjectMapperConfig.objectMapperConfig; -import static io.restassured.config.RestAssuredConfig.config; -import static org.openapitools.client.JacksonObjectMapper.jackson; - -/** - * API tests for FakeClassnameTags123Api - */ -@Disabled -public class FakeClassnameTags123ApiTest { - - private FakeClassnameTags123Api api; - - @BeforeEach - public void createApi() { - api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier( - () -> new RequestSpecBuilder() - .setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(jackson()))) - .addFilter(new ErrorLoggingFilter()) - .setBaseUri("http://petstore.swagger.io:80/v2"))).fakeClassnameTags123(); - } - - /** - * successful operation - */ - @Test - public void shouldSee200AfterTestClassname() { - Client body = null; - api.testClassname() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/PetApiTest.java index 0a65e65e0d3b..9bb93168fbd5 100644 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/PetApiTest.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 org.openapitools.client.ApiClient; import org.openapitools.client.api.PetApi; import io.restassured.builder.RequestSpecBuilder; @@ -53,7 +50,7 @@ public void createApi() { () -> new RequestSpecBuilder() .setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(jackson()))) .addFilter(new ErrorLoggingFilter()) - .setBaseUri("http://petstore.swagger.io:80/v2"))).pet(); + .setBaseUri("http://petstore.swagger.io/v2"))).pet(); } /** @@ -61,9 +58,9 @@ public void createApi() { */ @Test public void shouldSee200AfterAddPet() { - Pet body = null; + Pet pet = null; api.addPet() - .body(body).execute(r -> r.prettyPeek()); + .body(pet).execute(r -> r.prettyPeek()); // TODO: test validations } @@ -72,202 +69,9 @@ public void shouldSee200AfterAddPet() { */ @Test public void shouldSee405AfterAddPet() { - Pet body = null; + Pet pet = null; api.addPet() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterDeletePet() { - Long petId = null; - String apiKey = null; - api.deletePet() - .petIdPath(petId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Invalid pet value - */ - @Test - public void shouldSee400AfterDeletePet() { - Long petId = null; - String apiKey = null; - api.deletePet() - .petIdPath(petId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterFindPetsByStatus() { - List status = null; - api.findPetsByStatus() - .statusQuery(status).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Invalid status value - */ - @Test - public void shouldSee400AfterFindPetsByStatus() { - List status = null; - api.findPetsByStatus() - .statusQuery(status).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterFindPetsByTags() { - Set tags = null; - api.findPetsByTags() - .tagsQuery(tags).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Invalid tag value - */ - @Test - public void shouldSee400AfterFindPetsByTags() { - Set tags = null; - api.findPetsByTags() - .tagsQuery(tags).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterGetPetById() { - Long petId = null; - api.getPetById() - .petIdPath(petId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Invalid ID supplied - */ - @Test - public void shouldSee400AfterGetPetById() { - Long petId = null; - api.getPetById() - .petIdPath(petId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Pet not found - */ - @Test - public void shouldSee404AfterGetPetById() { - Long petId = null; - api.getPetById() - .petIdPath(petId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterUpdatePet() { - Pet body = null; - api.updatePet() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Invalid ID supplied - */ - @Test - public void shouldSee400AfterUpdatePet() { - Pet body = null; - api.updatePet() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Pet not found - */ - @Test - public void shouldSee404AfterUpdatePet() { - Pet body = null; - api.updatePet() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Validation exception - */ - @Test - public void shouldSee405AfterUpdatePet() { - Pet body = null; - api.updatePet() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Invalid input - */ - @Test - public void shouldSee405AfterUpdatePetWithForm() { - Long petId = null; - String name = null; - String status = null; - api.updatePetWithForm() - .petIdPath(petId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterUploadFile() { - Long petId = null; - String additionalMetadata = null; - File _file = null; - api.uploadFile() - .petIdPath(petId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterUploadFileWithRequiredFile() { - Long petId = null; - File requiredFile = null; - String additionalMetadata = null; - api.uploadFileWithRequiredFile() - .petIdPath(petId) - .requiredFileMultiPart(requiredFile).execute(r -> r.prettyPeek()); + .body(pet).execute(r -> r.prettyPeek()); // TODO: test validations } diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/StoreApiTest.java deleted file mode 100644 index fccd65f8d5a1..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ /dev/null @@ -1,145 +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 org.openapitools.client.ApiClient; -import org.openapitools.client.api.StoreApi; -import io.restassured.builder.RequestSpecBuilder; -import io.restassured.filter.log.ErrorLoggingFilter; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.validation.constraints.*; -import javax.validation.Valid; - -import static io.restassured.config.ObjectMapperConfig.objectMapperConfig; -import static io.restassured.config.RestAssuredConfig.config; -import static org.openapitools.client.JacksonObjectMapper.jackson; - -/** - * API tests for StoreApi - */ -@Disabled -public class StoreApiTest { - - private StoreApi api; - - @BeforeEach - public void createApi() { - api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier( - () -> new RequestSpecBuilder() - .setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(jackson()))) - .addFilter(new ErrorLoggingFilter()) - .setBaseUri("http://petstore.swagger.io:80/v2"))).store(); - } - - /** - * Invalid ID supplied - */ - @Test - public void shouldSee400AfterDeleteOrder() { - String orderId = null; - api.deleteOrder() - .orderIdPath(orderId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Order not found - */ - @Test - public void shouldSee404AfterDeleteOrder() { - String orderId = null; - api.deleteOrder() - .orderIdPath(orderId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterGetInventory() { - api.getInventory().execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterGetOrderById() { - Long orderId = null; - api.getOrderById() - .orderIdPath(orderId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Invalid ID supplied - */ - @Test - public void shouldSee400AfterGetOrderById() { - Long orderId = null; - api.getOrderById() - .orderIdPath(orderId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Order not found - */ - @Test - public void shouldSee404AfterGetOrderById() { - Long orderId = null; - api.getOrderById() - .orderIdPath(orderId).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterPlaceOrder() { - Order body = null; - api.placeOrder() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Invalid Order - */ - @Test - public void shouldSee400AfterPlaceOrder() { - Order body = null; - api.placeOrder() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/UserApiTest.java deleted file mode 100644 index 5546daf3eba4..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/api/UserApiTest.java +++ /dev/null @@ -1,213 +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.time.OffsetDateTime; -import org.openapitools.client.model.User; -import org.openapitools.client.ApiClient; -import org.openapitools.client.api.UserApi; -import io.restassured.builder.RequestSpecBuilder; -import io.restassured.filter.log.ErrorLoggingFilter; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.validation.constraints.*; -import javax.validation.Valid; - -import static io.restassured.config.ObjectMapperConfig.objectMapperConfig; -import static io.restassured.config.RestAssuredConfig.config; -import static org.openapitools.client.JacksonObjectMapper.jackson; - -/** - * API tests for UserApi - */ -@Disabled -public class UserApiTest { - - private UserApi api; - - @BeforeEach - public void createApi() { - api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier( - () -> new RequestSpecBuilder() - .setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(jackson()))) - .addFilter(new ErrorLoggingFilter()) - .setBaseUri("http://petstore.swagger.io:80/v2"))).user(); - } - - /** - * successful operation - */ - @Test - public void shouldSee0AfterCreateUser() { - User body = null; - api.createUser() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee0AfterCreateUsersWithArrayInput() { - List<@Valid User> body = null; - api.createUsersWithArrayInput() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee0AfterCreateUsersWithListInput() { - List<@Valid User> body = null; - api.createUsersWithListInput() - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Invalid username supplied - */ - @Test - public void shouldSee400AfterDeleteUser() { - String username = null; - api.deleteUser() - .usernamePath(username).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * User not found - */ - @Test - public void shouldSee404AfterDeleteUser() { - String username = null; - api.deleteUser() - .usernamePath(username).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterGetUserByName() { - String username = null; - api.getUserByName() - .usernamePath(username).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Invalid username supplied - */ - @Test - public void shouldSee400AfterGetUserByName() { - String username = null; - api.getUserByName() - .usernamePath(username).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * User not found - */ - @Test - public void shouldSee404AfterGetUserByName() { - String username = null; - api.getUserByName() - .usernamePath(username).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee200AfterLoginUser() { - String username = null; - String password = null; - api.loginUser() - .usernameQuery(username) - .passwordQuery(password).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * Invalid username/password supplied - */ - @Test - public void shouldSee400AfterLoginUser() { - String username = null; - String password = null; - api.loginUser() - .usernameQuery(username) - .passwordQuery(password).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * successful operation - */ - @Test - public void shouldSee0AfterLogoutUser() { - api.logoutUser().execute(r -> r.prettyPeek()); - // TODO: test validations - } - - - /** - * Invalid user supplied - */ - @Test - public void shouldSee400AfterUpdateUser() { - String username = null; - User body = null; - api.updateUser() - .usernamePath(username) - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - - /** - * User not found - */ - @Test - public void shouldSee404AfterUpdateUser() { - String username = null; - User body = null; - api.updateUser() - .usernamePath(username) - .body(body).execute(r -> r.prettyPeek()); - // TODO: test validations - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java deleted file mode 100644 index 1cd83fcd639b..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java +++ /dev/null @@ -1,48 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AdditionalPropertiesAnyType - */ -class AdditionalPropertiesAnyTypeTest { - private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType(); - - /** - * Model tests for AdditionalPropertiesAnyType - */ - @Test - void testAdditionalPropertiesAnyType() { - // TODO: test AdditionalPropertiesAnyType - } - - /** - * Test the property 'name' - */ - @Test - void nameTest() { - // TODO: test name - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java deleted file mode 100644 index 68875a3dff8e..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java +++ /dev/null @@ -1,49 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AdditionalPropertiesArray - */ -class AdditionalPropertiesArrayTest { - private final AdditionalPropertiesArray model = new AdditionalPropertiesArray(); - - /** - * Model tests for AdditionalPropertiesArray - */ - @Test - void testAdditionalPropertiesArray() { - // TODO: test AdditionalPropertiesArray - } - - /** - * Test the property 'name' - */ - @Test - void nameTest() { - // TODO: test name - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java deleted file mode 100644 index e09b56efb4a1..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java +++ /dev/null @@ -1,48 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AdditionalPropertiesBoolean - */ -class AdditionalPropertiesBooleanTest { - private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean(); - - /** - * Model tests for AdditionalPropertiesBoolean - */ - @Test - void testAdditionalPropertiesBoolean() { - // TODO: test AdditionalPropertiesBoolean - } - - /** - * Test the property 'name' - */ - @Test - void nameTest() { - // TODO: test name - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java deleted file mode 100644 index f3fbf8f08afe..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ /dev/null @@ -1,130 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AdditionalPropertiesClass - */ -class AdditionalPropertiesClassTest { - private final AdditionalPropertiesClass model = new AdditionalPropertiesClass(); - - /** - * Model tests for AdditionalPropertiesClass - */ - @Test - void testAdditionalPropertiesClass() { - // TODO: test AdditionalPropertiesClass - } - - /** - * Test the property 'mapString' - */ - @Test - void mapStringTest() { - // TODO: test mapString - } - - /** - * Test the property 'mapNumber' - */ - @Test - void mapNumberTest() { - // TODO: test mapNumber - } - - /** - * Test the property 'mapInteger' - */ - @Test - void mapIntegerTest() { - // TODO: test mapInteger - } - - /** - * Test the property 'mapBoolean' - */ - @Test - void mapBooleanTest() { - // TODO: test mapBoolean - } - - /** - * Test the property 'mapArrayInteger' - */ - @Test - void mapArrayIntegerTest() { - // TODO: test mapArrayInteger - } - - /** - * Test the property 'mapArrayAnytype' - */ - @Test - void mapArrayAnytypeTest() { - // TODO: test mapArrayAnytype - } - - /** - * Test the property 'mapMapString' - */ - @Test - void mapMapStringTest() { - // TODO: test mapMapString - } - - /** - * Test the property 'mapMapAnytype' - */ - @Test - void mapMapAnytypeTest() { - // TODO: test mapMapAnytype - } - - /** - * Test the property 'anytype1' - */ - @Test - void anytype1Test() { - // TODO: test anytype1 - } - - /** - * Test the property 'anytype2' - */ - @Test - void anytype2Test() { - // TODO: test anytype2 - } - - /** - * Test the property 'anytype3' - */ - @Test - void anytype3Test() { - // TODO: test anytype3 - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java deleted file mode 100644 index 531c16c397d9..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java +++ /dev/null @@ -1,48 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AdditionalPropertiesInteger - */ -class AdditionalPropertiesIntegerTest { - private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger(); - - /** - * Model tests for AdditionalPropertiesInteger - */ - @Test - void testAdditionalPropertiesInteger() { - // TODO: test AdditionalPropertiesInteger - } - - /** - * Test the property 'name' - */ - @Test - void nameTest() { - // TODO: test name - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java deleted file mode 100644 index e13c70d17b39..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java +++ /dev/null @@ -1,49 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AdditionalPropertiesNumber - */ -class AdditionalPropertiesNumberTest { - private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber(); - - /** - * Model tests for AdditionalPropertiesNumber - */ - @Test - void testAdditionalPropertiesNumber() { - // TODO: test AdditionalPropertiesNumber - } - - /** - * Test the property 'name' - */ - @Test - void nameTest() { - // TODO: test name - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java deleted file mode 100644 index 469960068d8c..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java +++ /dev/null @@ -1,48 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AdditionalPropertiesObject - */ -class AdditionalPropertiesObjectTest { - private final AdditionalPropertiesObject model = new AdditionalPropertiesObject(); - - /** - * Model tests for AdditionalPropertiesObject - */ - @Test - void testAdditionalPropertiesObject() { - // TODO: test AdditionalPropertiesObject - } - - /** - * Test the property 'name' - */ - @Test - void nameTest() { - // TODO: test name - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java deleted file mode 100644 index e9111ef15092..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java +++ /dev/null @@ -1,48 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AdditionalPropertiesString - */ -class AdditionalPropertiesStringTest { - private final AdditionalPropertiesString model = new AdditionalPropertiesString(); - - /** - * Model tests for AdditionalPropertiesString - */ - @Test - void testAdditionalPropertiesString() { - // TODO: test AdditionalPropertiesString - } - - /** - * Test the property 'name' - */ - @Test - void nameTest() { - // TODO: test name - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AnimalTest.java deleted file mode 100644 index b94d4102d9d2..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/AnimalTest.java +++ /dev/null @@ -1,57 +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.model; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Animal - */ -class AnimalTest { - private final Animal model = new Animal(); - - /** - * Model tests for Animal - */ - @Test - void testAnimal() { - // TODO: test Animal - } - - /** - * Test the property 'className' - */ - @Test - void classNameTest() { - // TODO: test className - } - - /** - * Test the property 'color' - */ - @Test - void colorTest() { - // TODO: test color - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java deleted file mode 100644 index 58003af3335e..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ /dev/null @@ -1,50 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayOfArrayOfNumberOnly - */ -class ArrayOfArrayOfNumberOnlyTest { - private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly(); - - /** - * Model tests for ArrayOfArrayOfNumberOnly - */ - @Test - void testArrayOfArrayOfNumberOnly() { - // TODO: test ArrayOfArrayOfNumberOnly - } - - /** - * Test the property 'arrayArrayNumber' - */ - @Test - void arrayArrayNumberTest() { - // TODO: test arrayArrayNumber - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java deleted file mode 100644 index cd53d4c5711b..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ /dev/null @@ -1,50 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayOfNumberOnly - */ -class ArrayOfNumberOnlyTest { - private final ArrayOfNumberOnly model = new ArrayOfNumberOnly(); - - /** - * Model tests for ArrayOfNumberOnly - */ - @Test - void testArrayOfNumberOnly() { - // TODO: test ArrayOfNumberOnly - } - - /** - * Test the property 'arrayNumber' - */ - @Test - void arrayNumberTest() { - // TODO: test arrayNumber - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ArrayTestTest.java deleted file mode 100644 index 1b9e9afe09e2..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ /dev/null @@ -1,66 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.client.model.ReadOnlyFirst; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayTest - */ -class ArrayTestTest { - private final ArrayTest model = new ArrayTest(); - - /** - * Model tests for ArrayTest - */ - @Test - void testArrayTest() { - // TODO: test ArrayTest - } - - /** - * Test the property 'arrayOfString' - */ - @Test - void arrayOfStringTest() { - // TODO: test arrayOfString - } - - /** - * Test the property 'arrayArrayOfInteger' - */ - @Test - void arrayArrayOfIntegerTest() { - // TODO: test arrayArrayOfInteger - } - - /** - * Test the property 'arrayArrayOfModel' - */ - @Test - void arrayArrayOfModelTest() { - // TODO: test arrayArrayOfModel - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/BigCatTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/BigCatTest.java deleted file mode 100644 index a36aa0dcd801..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/BigCatTest.java +++ /dev/null @@ -1,74 +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.model; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Cat; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for BigCat - */ -class BigCatTest { - private final BigCat model = new BigCat(); - - /** - * Model tests for BigCat - */ - @Test - void testBigCat() { - // TODO: test BigCat - } - - /** - * Test the property 'className' - */ - @Test - void classNameTest() { - // TODO: test className - } - - /** - * Test the property 'color' - */ - @Test - void colorTest() { - // TODO: test color - } - - /** - * Test the property 'declawed' - */ - @Test - void declawedTest() { - // TODO: test declawed - } - - /** - * Test the property 'kind' - */ - @Test - void kindTest() { - // TODO: test kind - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CapitalizationTest.java deleted file mode 100644 index e5b3d607a9c0..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ /dev/null @@ -1,86 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Capitalization - */ -class CapitalizationTest { - private final Capitalization model = new Capitalization(); - - /** - * Model tests for Capitalization - */ - @Test - void testCapitalization() { - // TODO: test Capitalization - } - - /** - * Test the property 'smallCamel' - */ - @Test - void smallCamelTest() { - // TODO: test smallCamel - } - - /** - * Test the property 'capitalCamel' - */ - @Test - void capitalCamelTest() { - // TODO: test capitalCamel - } - - /** - * Test the property 'smallSnake' - */ - @Test - void smallSnakeTest() { - // TODO: test smallSnake - } - - /** - * Test the property 'capitalSnake' - */ - @Test - void capitalSnakeTest() { - // TODO: test capitalSnake - } - - /** - * Test the property 'scAETHFlowPoints' - */ - @Test - void scAETHFlowPointsTest() { - // TODO: test scAETHFlowPoints - } - - /** - * Test the property 'ATT_NAME' - */ - @Test - void ATT_NAMETest() { - // TODO: test ATT_NAME - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CatTest.java deleted file mode 100644 index a0df0e5aa93b..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CatTest.java +++ /dev/null @@ -1,66 +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.model; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Animal; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Cat - */ -class CatTest { - private final Cat model = new Cat(); - - /** - * Model tests for Cat - */ - @Test - void testCat() { - // TODO: test Cat - } - - /** - * Test the property 'className' - */ - @Test - void classNameTest() { - // TODO: test className - } - - /** - * Test the property 'color' - */ - @Test - void colorTest() { - // TODO: test color - } - - /** - * Test the property 'declawed' - */ - @Test - void declawedTest() { - // TODO: test declawed - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CategoryTest.java index 5dcd2df5f4b4..e1e40bbfbe52 100644 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/CategoryTest.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/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ClassModelTest.java deleted file mode 100644 index 189f2a756736..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ /dev/null @@ -1,46 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ClassModel - */ -class ClassModelTest { - private final ClassModel model = new ClassModel(); - - /** - * Model tests for ClassModel - */ - @Test - void testClassModel() { - // TODO: test ClassModel - } - - /** - * Test the property 'propertyClass' - */ - @Test - void propertyClassTest() { - // TODO: test propertyClass - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ClientTest.java deleted file mode 100644 index e750396999d5..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ClientTest.java +++ /dev/null @@ -1,46 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Client - */ -class ClientTest { - private final Client model = new Client(); - - /** - * Model tests for Client - */ - @Test - void testClient() { - // TODO: test Client - } - - /** - * Test the property 'client' - */ - @Test - void clientTest() { - // TODO: test client - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/DogTest.java deleted file mode 100644 index 3a39f552a68d..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/DogTest.java +++ /dev/null @@ -1,66 +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.model; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Animal; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Dog - */ -class DogTest { - private final Dog model = new Dog(); - - /** - * Model tests for Dog - */ - @Test - void testDog() { - // TODO: test Dog - } - - /** - * Test the property 'className' - */ - @Test - void classNameTest() { - // TODO: test className - } - - /** - * Test the property 'color' - */ - @Test - void colorTest() { - // TODO: test color - } - - /** - * Test the property 'breed' - */ - @Test - void breedTest() { - // TODO: test breed - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/EnumArraysTest.java deleted file mode 100644 index 9e0c39e3dc64..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ /dev/null @@ -1,57 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for EnumArrays - */ -class EnumArraysTest { - private final EnumArrays model = new EnumArrays(); - - /** - * Model tests for EnumArrays - */ - @Test - void testEnumArrays() { - // TODO: test EnumArrays - } - - /** - * Test the property 'justSymbol' - */ - @Test - void justSymbolTest() { - // TODO: test justSymbol - } - - /** - * Test the property 'arrayEnum' - */ - @Test - void arrayEnumTest() { - // TODO: test arrayEnum - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/EnumClassTest.java deleted file mode 100644 index 48aa1a737fce..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ /dev/null @@ -1,32 +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.model; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for EnumClass - */ -class EnumClassTest { - /** - * Model tests for EnumClass - */ - @Test - void testEnumClass() { - // TODO: test EnumClass - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/EnumTestTest.java deleted file mode 100644 index b06e3eb195d9..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ /dev/null @@ -1,80 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.OuterEnum; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for EnumTest - */ -class EnumTestTest { - private final EnumTest model = new EnumTest(); - - /** - * Model tests for EnumTest - */ - @Test - void testEnumTest() { - // TODO: test EnumTest - } - - /** - * Test the property 'enumString' - */ - @Test - void enumStringTest() { - // TODO: test enumString - } - - /** - * Test the property 'enumStringRequired' - */ - @Test - void enumStringRequiredTest() { - // TODO: test enumStringRequired - } - - /** - * Test the property 'enumInteger' - */ - @Test - void enumIntegerTest() { - // TODO: test enumInteger - } - - /** - * Test the property 'enumNumber' - */ - @Test - void enumNumberTest() { - // TODO: test enumNumber - } - - /** - * Test the property 'outerEnum' - */ - @Test - void outerEnumTest() { - // TODO: test outerEnum - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java deleted file mode 100644 index ae954fa2cdd8..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ /dev/null @@ -1,58 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.client.model.ModelFile; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FileSchemaTestClass - */ -class FileSchemaTestClassTest { - private final FileSchemaTestClass model = new FileSchemaTestClass(); - - /** - * Model tests for FileSchemaTestClass - */ - @Test - void testFileSchemaTestClass() { - // TODO: test FileSchemaTestClass - } - - /** - * Test the property '_file' - */ - @Test - void _fileTest() { - // TODO: test _file - } - - /** - * Test the property 'files' - */ - @Test - void filesTest() { - // TODO: test files - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/FormatTestTest.java deleted file mode 100644 index 3060f7f2d56d..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ /dev/null @@ -1,156 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.File; -import java.math.BigDecimal; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.UUID; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FormatTest - */ -class FormatTestTest { - private final FormatTest model = new FormatTest(); - - /** - * Model tests for FormatTest - */ - @Test - void testFormatTest() { - // TODO: test FormatTest - } - - /** - * Test the property 'integer' - */ - @Test - void integerTest() { - // TODO: test integer - } - - /** - * Test the property 'int32' - */ - @Test - void int32Test() { - // TODO: test int32 - } - - /** - * Test the property 'int64' - */ - @Test - void int64Test() { - // TODO: test int64 - } - - /** - * Test the property 'number' - */ - @Test - void numberTest() { - // TODO: test number - } - - /** - * Test the property '_float' - */ - @Test - void _floatTest() { - // TODO: test _float - } - - /** - * Test the property '_double' - */ - @Test - void _doubleTest() { - // TODO: test _double - } - - /** - * Test the property 'string' - */ - @Test - void stringTest() { - // TODO: test string - } - - /** - * Test the property '_byte' - */ - @Test - void _byteTest() { - // TODO: test _byte - } - - /** - * Test the property 'binary' - */ - @Test - void binaryTest() { - // TODO: test binary - } - - /** - * Test the property 'date' - */ - @Test - void dateTest() { - // TODO: test date - } - - /** - * Test the property 'dateTime' - */ - @Test - void dateTimeTest() { - // TODO: test dateTime - } - - /** - * Test the property 'uuid' - */ - @Test - void uuidTest() { - // TODO: test uuid - } - - /** - * Test the property 'password' - */ - @Test - void passwordTest() { - // TODO: test password - } - - /** - * Test the property 'bigDecimal' - */ - @Test - void bigDecimalTest() { - // TODO: test bigDecimal - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java deleted file mode 100644 index 908f0aff6ed7..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ /dev/null @@ -1,55 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for HasOnlyReadOnly - */ -class HasOnlyReadOnlyTest { - private final HasOnlyReadOnly model = new HasOnlyReadOnly(); - - /** - * Model tests for HasOnlyReadOnly - */ - @Test - void testHasOnlyReadOnly() { - // TODO: test HasOnlyReadOnly - } - - /** - * Test the property 'bar' - */ - @Test - void barTest() { - // TODO: test bar - } - - /** - * Test the property 'foo' - */ - @Test - void fooTest() { - // TODO: test foo - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/MapTestTest.java deleted file mode 100644 index aec0dbc78bfc..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/MapTestTest.java +++ /dev/null @@ -1,72 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MapTest - */ -class MapTestTest { - private final MapTest model = new MapTest(); - - /** - * Model tests for MapTest - */ - @Test - void testMapTest() { - // TODO: test MapTest - } - - /** - * Test the property 'mapMapOfString' - */ - @Test - void mapMapOfStringTest() { - // TODO: test mapMapOfString - } - - /** - * Test the property 'mapOfEnumString' - */ - @Test - void mapOfEnumStringTest() { - // TODO: test mapOfEnumString - } - - /** - * Test the property 'directMap' - */ - @Test - void directMapTest() { - // TODO: test directMap - } - - /** - * Test the property 'indirectMap' - */ - @Test - void indirectMapTest() { - // TODO: test indirectMap - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java deleted file mode 100644 index a13f124b4496..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ /dev/null @@ -1,67 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import java.util.UUID; -import org.openapitools.client.model.Animal; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MixedPropertiesAndAdditionalPropertiesClass - */ -class MixedPropertiesAndAdditionalPropertiesClassTest { - private final MixedPropertiesAndAdditionalPropertiesClass model = new MixedPropertiesAndAdditionalPropertiesClass(); - - /** - * Model tests for MixedPropertiesAndAdditionalPropertiesClass - */ - @Test - void testMixedPropertiesAndAdditionalPropertiesClass() { - // TODO: test MixedPropertiesAndAdditionalPropertiesClass - } - - /** - * Test the property 'uuid' - */ - @Test - void uuidTest() { - // TODO: test uuid - } - - /** - * Test the property 'dateTime' - */ - @Test - void dateTimeTest() { - // TODO: test dateTime - } - - /** - * Test the property 'map' - */ - @Test - void mapTest() { - // TODO: test map - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java deleted file mode 100644 index 5743b70142b8..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ /dev/null @@ -1,55 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Model200Response - */ -class Model200ResponseTest { - private final Model200Response model = new Model200Response(); - - /** - * Model tests for Model200Response - */ - @Test - void testModel200Response() { - // TODO: test Model200Response - } - - /** - * Test the property 'name' - */ - @Test - void nameTest() { - // TODO: test name - } - - /** - * Test the property 'propertyClass' - */ - @Test - void propertyClassTest() { - // TODO: test propertyClass - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java deleted file mode 100644 index 436e4abd59e3..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ /dev/null @@ -1,63 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ModelApiResponse - */ -class ModelApiResponseTest { - private final ModelApiResponse model = new ModelApiResponse(); - - /** - * Model tests for ModelApiResponse - */ - @Test - void testModelApiResponse() { - // TODO: test ModelApiResponse - } - - /** - * Test the property 'code' - */ - @Test - void codeTest() { - // TODO: test code - } - - /** - * Test the property 'type' - */ - @Test - void typeTest() { - // TODO: test type - } - - /** - * Test the property 'message' - */ - @Test - void messageTest() { - // TODO: test message - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelFileTest.java deleted file mode 100644 index f128d7b9ac2e..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ /dev/null @@ -1,47 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ModelFile - */ -class ModelFileTest { - private final ModelFile model = new ModelFile(); - - /** - * Model tests for ModelFile - */ - @Test - void testModelFile() { - // TODO: test ModelFile - } - - /** - * Test the property 'sourceURI' - */ - @Test - void sourceURITest() { - // TODO: test sourceURI - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelListTest.java deleted file mode 100644 index 92273f48d239..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelListTest.java +++ /dev/null @@ -1,47 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ModelList - */ -class ModelListTest { - private final ModelList model = new ModelList(); - - /** - * Model tests for ModelList - */ - @Test - void testModelList() { - // TODO: test ModelList - } - - /** - * Test the property '_123list' - */ - @Test - void _123listTest() { - // TODO: test _123list - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelReturnTest.java deleted file mode 100644 index 1c5337654cd4..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ /dev/null @@ -1,47 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ModelReturn - */ -class ModelReturnTest { - private final ModelReturn model = new ModelReturn(); - - /** - * Model tests for ModelReturn - */ - @Test - void testModelReturn() { - // TODO: test ModelReturn - } - - /** - * Test the property '_return' - */ - @Test - void _returnTest() { - // TODO: test _return - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/NameTest.java deleted file mode 100644 index 30551deb5c34..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/NameTest.java +++ /dev/null @@ -1,70 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Name - */ -class NameTest { - private final Name model = new Name(); - - /** - * Model tests for Name - */ - @Test - void testName() { - // TODO: test Name - } - - /** - * Test the property 'name' - */ - @Test - void nameTest() { - // TODO: test name - } - - /** - * Test the property 'snakeCase' - */ - @Test - void snakeCaseTest() { - // TODO: test snakeCase - } - - /** - * Test the property 'property' - */ - @Test - void propertyTest() { - // TODO: test property - } - - /** - * Test the property '_123number' - */ - @Test - void _123numberTest() { - // TODO: test _123number - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java deleted file mode 100644 index b37c7386e10b..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ /dev/null @@ -1,47 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for NumberOnly - */ -class NumberOnlyTest { - private final NumberOnly model = new NumberOnly(); - - /** - * Model tests for NumberOnly - */ - @Test - void testNumberOnly() { - // TODO: test NumberOnly - } - - /** - * Test the property 'justNumber' - */ - @Test - void justNumberTest() { - // TODO: test justNumber - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/OrderTest.java deleted file mode 100644 index b9a95b6e8d86..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/OrderTest.java +++ /dev/null @@ -1,87 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Order - */ -class OrderTest { - private final Order model = new Order(); - - /** - * Model tests for Order - */ - @Test - void testOrder() { - // TODO: test Order - } - - /** - * Test the property 'id' - */ - @Test - void idTest() { - // TODO: test id - } - - /** - * Test the property 'petId' - */ - @Test - void petIdTest() { - // TODO: test petId - } - - /** - * Test the property 'quantity' - */ - @Test - void quantityTest() { - // TODO: test quantity - } - - /** - * Test the property 'shipDate' - */ - @Test - void shipDateTest() { - // TODO: test shipDate - } - - /** - * Test the property 'status' - */ - @Test - void statusTest() { - // TODO: test status - } - - /** - * Test the property 'complete' - */ - @Test - void completeTest() { - // TODO: test complete - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java deleted file mode 100644 index 6a6bf74a344f..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ /dev/null @@ -1,63 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for OuterComposite - */ -class OuterCompositeTest { - private final OuterComposite model = new OuterComposite(); - - /** - * Model tests for OuterComposite - */ - @Test - void testOuterComposite() { - // TODO: test OuterComposite - } - - /** - * Test the property 'myNumber' - */ - @Test - void myNumberTest() { - // TODO: test myNumber - } - - /** - * Test the property 'myString' - */ - @Test - void myStringTest() { - // TODO: test myString - } - - /** - * Test the property 'myBoolean' - */ - @Test - void myBooleanTest() { - // TODO: test myBoolean - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/OuterEnumTest.java deleted file mode 100644 index 0333ee657a0f..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ /dev/null @@ -1,32 +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.model; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for OuterEnum - */ -class OuterEnumTest { - /** - * Model tests for OuterEnum - */ - @Test - void testOuterEnum() { - // TODO: test OuterEnum - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/PetTest.java index 704ae72ee839..0d6357a8af02 100644 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/PetTest.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 * @@ -19,12 +19,9 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; -import java.util.LinkedHashSet; import java.util.List; -import java.util.Set; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; -import tools.jackson.databind.annotation.JsonDeserialize; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java deleted file mode 100644 index 3529d10202b0..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ /dev/null @@ -1,54 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ReadOnlyFirst - */ -class ReadOnlyFirstTest { - private final ReadOnlyFirst model = new ReadOnlyFirst(); - - /** - * Model tests for ReadOnlyFirst - */ - @Test - void testReadOnlyFirst() { - // TODO: test ReadOnlyFirst - } - - /** - * Test the property 'bar' - */ - @Test - void barTest() { - // TODO: test bar - } - - /** - * Test the property 'baz' - */ - @Test - void bazTest() { - // TODO: test baz - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java deleted file mode 100644 index 9501cf722d66..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ /dev/null @@ -1,47 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SpecialModelName - */ -class SpecialModelNameTest { - private final SpecialModelName model = new SpecialModelName(); - - /** - * Model tests for SpecialModelName - */ - @Test - void testSpecialModelName() { - // TODO: test SpecialModelName - } - - /** - * Test the property '$specialPropertyName' - */ - @Test - void $specialPropertyNameTest() { - // TODO: test $specialPropertyName - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/TagTest.java index 6e070f33035e..0069421b7203 100644 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/TagTest.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/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java deleted file mode 100644 index 8142d73a7dc1..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java +++ /dev/null @@ -1,82 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TypeHolderDefault - */ -class TypeHolderDefaultTest { - private final TypeHolderDefault model = new TypeHolderDefault(); - - /** - * Model tests for TypeHolderDefault - */ - @Test - void testTypeHolderDefault() { - // TODO: test TypeHolderDefault - } - - /** - * Test the property 'stringItem' - */ - @Test - void stringItemTest() { - // TODO: test stringItem - } - - /** - * Test the property 'numberItem' - */ - @Test - void numberItemTest() { - // TODO: test numberItem - } - - /** - * Test the property 'integerItem' - */ - @Test - void integerItemTest() { - // TODO: test integerItem - } - - /** - * Test the property 'boolItem' - */ - @Test - void boolItemTest() { - // TODO: test boolItem - } - - /** - * Test the property 'arrayItem' - */ - @Test - void arrayItemTest() { - // TODO: test arrayItem - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java deleted file mode 100644 index 18db0d47c97c..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java +++ /dev/null @@ -1,90 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TypeHolderExample - */ -class TypeHolderExampleTest { - private final TypeHolderExample model = new TypeHolderExample(); - - /** - * Model tests for TypeHolderExample - */ - @Test - void testTypeHolderExample() { - // TODO: test TypeHolderExample - } - - /** - * Test the property 'stringItem' - */ - @Test - void stringItemTest() { - // TODO: test stringItem - } - - /** - * Test the property 'numberItem' - */ - @Test - void numberItemTest() { - // TODO: test numberItem - } - - /** - * Test the property 'floatItem' - */ - @Test - void floatItemTest() { - // TODO: test floatItem - } - - /** - * Test the property 'integerItem' - */ - @Test - void integerItemTest() { - // TODO: test integerItem - } - - /** - * Test the property 'boolItem' - */ - @Test - void boolItemTest() { - // TODO: test boolItem - } - - /** - * Test the property 'arrayItem' - */ - @Test - void arrayItemTest() { - // TODO: test arrayItem - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/UserTest.java deleted file mode 100644 index 49aadca648a6..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/UserTest.java +++ /dev/null @@ -1,102 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for User - */ -class UserTest { - private final User model = new User(); - - /** - * Model tests for User - */ - @Test - void testUser() { - // TODO: test User - } - - /** - * Test the property 'id' - */ - @Test - void idTest() { - // TODO: test id - } - - /** - * Test the property 'username' - */ - @Test - void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'firstName' - */ - @Test - void firstNameTest() { - // TODO: test firstName - } - - /** - * Test the property 'lastName' - */ - @Test - void lastNameTest() { - // TODO: test lastName - } - - /** - * Test the property 'email' - */ - @Test - void emailTest() { - // TODO: test email - } - - /** - * Test the property 'password' - */ - @Test - void passwordTest() { - // TODO: test password - } - - /** - * Test the property 'phone' - */ - @Test - void phoneTest() { - // TODO: test phone - } - - /** - * Test the property 'userStatus' - */ - @Test - void userStatusTest() { - // TODO: test userStatus - } - -} diff --git a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/XmlItemTest.java b/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/XmlItemTest.java deleted file mode 100644 index 52f2f51a3b2b..000000000000 --- a/samples/client/petstore/java/rest-assured-jackson3/src/test/java/org/openapitools/client/model/XmlItemTest.java +++ /dev/null @@ -1,274 +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.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for XmlItem - */ -class XmlItemTest { - private final XmlItem model = new XmlItem(); - - /** - * Model tests for XmlItem - */ - @Test - void testXmlItem() { - // TODO: test XmlItem - } - - /** - * Test the property 'attributeString' - */ - @Test - void attributeStringTest() { - // TODO: test attributeString - } - - /** - * Test the property 'attributeNumber' - */ - @Test - void attributeNumberTest() { - // TODO: test attributeNumber - } - - /** - * Test the property 'attributeInteger' - */ - @Test - void attributeIntegerTest() { - // TODO: test attributeInteger - } - - /** - * Test the property 'attributeBoolean' - */ - @Test - void attributeBooleanTest() { - // TODO: test attributeBoolean - } - - /** - * Test the property 'wrappedArray' - */ - @Test - void wrappedArrayTest() { - // TODO: test wrappedArray - } - - /** - * Test the property 'nameString' - */ - @Test - void nameStringTest() { - // TODO: test nameString - } - - /** - * Test the property 'nameNumber' - */ - @Test - void nameNumberTest() { - // TODO: test nameNumber - } - - /** - * Test the property 'nameInteger' - */ - @Test - void nameIntegerTest() { - // TODO: test nameInteger - } - - /** - * Test the property 'nameBoolean' - */ - @Test - void nameBooleanTest() { - // TODO: test nameBoolean - } - - /** - * Test the property 'nameArray' - */ - @Test - void nameArrayTest() { - // TODO: test nameArray - } - - /** - * Test the property 'nameWrappedArray' - */ - @Test - void nameWrappedArrayTest() { - // TODO: test nameWrappedArray - } - - /** - * Test the property 'prefixString' - */ - @Test - void prefixStringTest() { - // TODO: test prefixString - } - - /** - * Test the property 'prefixNumber' - */ - @Test - void prefixNumberTest() { - // TODO: test prefixNumber - } - - /** - * Test the property 'prefixInteger' - */ - @Test - void prefixIntegerTest() { - // TODO: test prefixInteger - } - - /** - * Test the property 'prefixBoolean' - */ - @Test - void prefixBooleanTest() { - // TODO: test prefixBoolean - } - - /** - * Test the property 'prefixArray' - */ - @Test - void prefixArrayTest() { - // TODO: test prefixArray - } - - /** - * Test the property 'prefixWrappedArray' - */ - @Test - void prefixWrappedArrayTest() { - // TODO: test prefixWrappedArray - } - - /** - * Test the property 'namespaceString' - */ - @Test - void namespaceStringTest() { - // TODO: test namespaceString - } - - /** - * Test the property 'namespaceNumber' - */ - @Test - void namespaceNumberTest() { - // TODO: test namespaceNumber - } - - /** - * Test the property 'namespaceInteger' - */ - @Test - void namespaceIntegerTest() { - // TODO: test namespaceInteger - } - - /** - * Test the property 'namespaceBoolean' - */ - @Test - void namespaceBooleanTest() { - // TODO: test namespaceBoolean - } - - /** - * Test the property 'namespaceArray' - */ - @Test - void namespaceArrayTest() { - // TODO: test namespaceArray - } - - /** - * Test the property 'namespaceWrappedArray' - */ - @Test - void namespaceWrappedArrayTest() { - // TODO: test namespaceWrappedArray - } - - /** - * Test the property 'prefixNsString' - */ - @Test - void prefixNsStringTest() { - // TODO: test prefixNsString - } - - /** - * Test the property 'prefixNsNumber' - */ - @Test - void prefixNsNumberTest() { - // TODO: test prefixNsNumber - } - - /** - * Test the property 'prefixNsInteger' - */ - @Test - void prefixNsIntegerTest() { - // TODO: test prefixNsInteger - } - - /** - * Test the property 'prefixNsBoolean' - */ - @Test - void prefixNsBooleanTest() { - // TODO: test prefixNsBoolean - } - - /** - * Test the property 'prefixNsArray' - */ - @Test - void prefixNsArrayTest() { - // TODO: test prefixNsArray - } - - /** - * Test the property 'prefixNsWrappedArray' - */ - @Test - void prefixNsWrappedArrayTest() { - // TODO: test prefixNsWrappedArray - } - -}