Skip to content

Commit 44843b6

Browse files
Marcel JacekMarcel Jacek
authored andcommitted
run generate-samples after rebase
1 parent 1ea7bf3 commit 44843b6

4 files changed

Lines changed: 234 additions & 245 deletions

File tree

samples/client/petstore/java/okhttp-gson/api/openapi.yaml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ paths:
15021502
content:
15031503
application/json:
15041504
schema:
1505-
$ref: '#/components/schemas/RequiredNullableBody'
1505+
$ref: "#/components/schemas/RequiredNullableBody"
15061506
description: success
15071507
summary: "fields in the response body, required and nullable are both true"
15081508
tags:
@@ -2885,6 +2885,62 @@ components:
28852885
anyof_prop:
28862886
$ref: "#/components/schemas/ArrayAnyOf"
28872887
type: object
2888+
NullableEnum:
2889+
enum:
2890+
- custom
2891+
nullable: true
2892+
type: string
2893+
RequiredNullableBody:
2894+
allOf:
2895+
- $ref: "#/components/schemas/NullableClass"
2896+
- properties:
2897+
custom_ref_enum:
2898+
$ref: "#/components/schemas/NullableEnum"
2899+
custom_enum:
2900+
enum:
2901+
- custom
2902+
nullable: true
2903+
type: string
2904+
required:
2905+
- array_and_items_nullable_prop
2906+
- array_items_nullable
2907+
- array_nullable_prop
2908+
- boolean_prop
2909+
- custom_enum
2910+
- custom_ref_enum
2911+
- date_prop
2912+
- datetime_prop
2913+
- integer_prop
2914+
- number_prop
2915+
- object_and_items_nullable_prop
2916+
- object_items_nullable
2917+
- object_nullable_prop
2918+
- string_prop
2919+
type: object
2920+
example:
2921+
number_prop: 6.027456183070403
2922+
datetime_prop: 2000-01-23T04:56:07.000+00:00
2923+
custom_ref_enum: custom
2924+
boolean_prop: true
2925+
string_prop: string_prop
2926+
array_nullable_prop:
2927+
- "{}"
2928+
- "{}"
2929+
custom_enum: custom
2930+
integer_prop: 0
2931+
array_and_items_nullable_prop:
2932+
- "{}"
2933+
- "{}"
2934+
object_items_nullable:
2935+
key: "{}"
2936+
object_nullable_prop:
2937+
key: "{}"
2938+
object_and_items_nullable_prop:
2939+
key: "{}"
2940+
date_prop: 2000-01-23
2941+
array_items_nullable:
2942+
- "{}"
2943+
- "{}"
28882944
NestedArrayWithDefaultValues:
28892945
properties:
28902946
nestedArray:
@@ -2942,62 +2998,6 @@ components:
29422998
- $ref: "#/components/schemas/Height"
29432999
default: 32.1
29443000
type: object
2945-
NullableEnum:
2946-
enum:
2947-
- custom
2948-
nullable: true
2949-
type: string
2950-
RequiredNullableBody:
2951-
allOf:
2952-
- $ref: '#/components/schemas/NullableClass'
2953-
- properties:
2954-
custom_ref_enum:
2955-
$ref: '#/components/schemas/NullableEnum'
2956-
custom_enum:
2957-
enum:
2958-
- custom
2959-
nullable: true
2960-
type: string
2961-
required:
2962-
- array_and_items_nullable_prop
2963-
- array_items_nullable
2964-
- array_nullable_prop
2965-
- boolean_prop
2966-
- custom_enum
2967-
- custom_ref_enum
2968-
- date_prop
2969-
- datetime_prop
2970-
- integer_prop
2971-
- number_prop
2972-
- object_and_items_nullable_prop
2973-
- object_items_nullable
2974-
- object_nullable_prop
2975-
- string_prop
2976-
type: object
2977-
example:
2978-
number_prop: 6.027456183070403
2979-
datetime_prop: 2000-01-23T04:56:07.000+00:00
2980-
custom_ref_enum: custom
2981-
boolean_prop: true
2982-
string_prop: string_prop
2983-
array_nullable_prop:
2984-
- "{}"
2985-
- "{}"
2986-
custom_enum: custom
2987-
integer_prop: 0
2988-
array_and_items_nullable_prop:
2989-
- "{}"
2990-
- "{}"
2991-
object_items_nullable:
2992-
key: "{}"
2993-
object_nullable_prop:
2994-
key: "{}"
2995-
object_and_items_nullable_prop:
2996-
key: "{}"
2997-
date_prop: 2000-01-23
2998-
array_items_nullable:
2999-
- "{}"
3000-
- "{}"
30013001
_foo_get_default_response:
30023002
example:
30033003
string:

samples/client/petstore/java/okhttp-gson/docs/FakeApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
99
| [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | |
1010
| [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | |
1111
| [**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | |
12-
| [**fakeRequiredNullableBodyGet**](FakeApi.md#fakeRequiredNullableBodyGet) | **GET** /fake/required-nullable-body | fields in the response body, required and nullable are both true |
1312
| [**fakeRefParameter**](FakeApi.md#fakeRefParameter) | **POST** /fake/pet/{petId}/reference/parameter | fake reference parameter |
13+
| [**fakeRequiredNullableBodyGet**](FakeApi.md#fakeRequiredNullableBodyGet) | **GET** /fake/required-nullable-body | fields in the response body, required and nullable are both true |
1414
| [**fakeUploadRefRequestBodies**](FakeApi.md#fakeUploadRefRequestBodies) | **POST** /fake/pet/{petId}/uploadImage | fake reference parameter |
1515
| [**getFakeArrayofenums**](FakeApi.md#getFakeArrayofenums) | **GET** /fake/array-of-enums | Array of Enums |
1616
| [**getFakeHealth**](FakeApi.md#getFakeHealth) | **GET** /fake/health | Health check endpoint |
@@ -446,8 +446,8 @@ No authorization required
446446

447447
### HTTP request headers
448448

449-
- **Content-Type**: Not defined
450-
- **Accept**: application/json
449+
- **Content-Type**: Not defined
450+
- **Accept**: application/json
451451

452452
### HTTP response details
453453
| Status code | Description | Response headers |

0 commit comments

Comments
 (0)