You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/test/resources/2_0/python-client-experimental/petstore-with-fake-endpoints-models-for-testing.yaml
+52-34Lines changed: 52 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -843,91 +843,108 @@ paths:
843
843
responses:
844
844
'400':
845
845
description: Someting wrong
846
-
/fake/outer/number:
846
+
/fake/refs/number:
847
847
post:
848
848
tags:
849
849
- fake
850
850
description: Test serialization of outer number types
851
-
operationId: fakeOuterNumberSerialize
851
+
operationId: NumberWithValidations
852
852
parameters:
853
853
- name: body
854
854
in: body
855
855
description: Input number as post body
856
856
schema:
857
-
$ref: '#/definitions/OuterNumber'
857
+
$ref: '#/definitions/NumberWithValidations'
858
858
responses:
859
859
'200':
860
860
description: Output number
861
861
schema:
862
-
$ref: '#/definitions/OuterNumber'
863
-
/fake/outer/string:
862
+
$ref: '#/definitions/NumberWithValidations'
863
+
/fake/refs/string:
864
864
post:
865
865
tags:
866
866
- fake
867
867
description: Test serialization of outer string types
868
-
operationId: fakeOuterStringSerialize
868
+
operationId: String
869
869
parameters:
870
870
- name: body
871
871
in: body
872
872
description: Input string as post body
873
873
schema:
874
-
$ref: '#/definitions/OuterString'
874
+
$ref: '#/definitions/String'
875
875
responses:
876
876
'200':
877
877
description: Output string
878
878
schema:
879
-
$ref: '#/definitions/OuterString'
880
-
/fake/outer/boolean:
879
+
$ref: '#/definitions/String'
880
+
/fake/refs/boolean:
881
881
post:
882
882
tags:
883
883
- fake
884
884
description: Test serialization of outer boolean types
885
-
operationId: fakeOuterBooleanSerialize
885
+
operationId: Boolean
886
886
parameters:
887
887
- name: body
888
888
in: body
889
889
description: Input boolean as post body
890
890
schema:
891
-
$ref: '#/definitions/OuterBoolean'
891
+
$ref: '#/definitions/Boolean'
892
892
responses:
893
893
'200':
894
894
description: Output boolean
895
895
schema:
896
-
$ref: '#/definitions/OuterBoolean'
897
-
/fake/outer/composite:
896
+
$ref: '#/definitions/Boolean'
897
+
/fake/refs/arraymodel:
898
898
post:
899
899
tags:
900
900
- fake
901
-
description: Test serialization of object with outer number type
902
-
operationId: fakeOuterCompositeSerialize
901
+
description: Test serialization of ArrayModel
902
+
operationId: ArrayModel
903
903
parameters:
904
904
- name: body
905
905
in: body
906
-
description: Input composite as post body
906
+
description: Input model
907
907
schema:
908
-
$ref: '#/definitions/OuterComposite'
908
+
$ref: '#/definitions/AnimalFarm'
909
909
responses:
910
910
'200':
911
-
description: Output composite
911
+
description: Output model
912
912
schema:
913
-
$ref: '#/definitions/OuterComposite'
914
-
/fake/outer/enum:
913
+
$ref: '#/definitions/AnimalFarm'
914
+
/fake/refs/object_model_with_ref_props:
915
+
post:
916
+
tags:
917
+
- fake
918
+
description: Test serialization of object with $refed properties
919
+
operationId: ObjectModelWithRefProps
920
+
parameters:
921
+
- name: body
922
+
in: body
923
+
description: Input model
924
+
schema:
925
+
$ref: '#/definitions/ObjectModelWithRefProps'
926
+
responses:
927
+
'200':
928
+
description: Output model
929
+
schema:
930
+
$ref: '#/definitions/ObjectModelWithRefProps'
931
+
/fake/refs/enum:
915
932
post:
916
933
tags:
917
934
- fake
918
935
description: Test serialization of outer enum
919
-
operationId: fakeOuterEnumSerialize
936
+
operationId: StringEnum
920
937
parameters:
921
938
- name: body
922
939
in: body
923
-
description: Input enum as post body
940
+
description: Input enum
924
941
schema:
925
-
$ref: '#/definitions/OuterEnum'
942
+
$ref: '#/definitions/StringEnum'
926
943
responses:
927
944
'200':
928
945
description: Output enum
929
946
schema:
930
-
$ref: '#/definitions/OuterEnum'
947
+
$ref: '#/definitions/StringEnum'
931
948
/fake/jsonFormData:
932
949
get:
933
950
tags:
@@ -1475,8 +1492,8 @@ definitions:
1475
1492
enum:
1476
1493
- 1.1
1477
1494
- -1.2
1478
-
outerEnum:
1479
-
$ref: '#/definitions/OuterEnum'
1495
+
stringEnum:
1496
+
$ref: '#/definitions/StringEnum'
1480
1497
AdditionalPropertiesClass:
1481
1498
type: object
1482
1499
properties:
@@ -1743,28 +1760,29 @@ definitions:
1743
1760
# enum:
1744
1761
# - Cat
1745
1762
# - Dog
1746
-
OuterEnum:
1763
+
StringEnum:
1747
1764
type: string
1748
1765
enum:
1749
1766
- "placed"
1750
1767
- "approved"
1751
1768
- "delivered"
1752
-
OuterComposite:
1769
+
ObjectModelWithRefProps:
1770
+
description: a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations
0 commit comments