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/main/resources/dart/libraries/dio/serialization/built_value/class_members.mustache
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
33
33
@BuiltValueHook(initializeBuilder: true)
34
34
static void _defaults({{{classname}}}Builder b) => b{{#vendorExtensions.x-parent-discriminator}}..{{propertyName}}=b.discriminatorValue{{/vendorExtensions.x-parent-discriminator}}{{#vendorExtensions.x-self-and-ancestor-only-props}}{{#defaultValue}}
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/test/resources/3_0/dart/petstore-with-fake-endpoints-models-for-testing.yaml
+20-13Lines changed: 20 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -2079,22 +2079,29 @@ components:
2079
2079
TestEnum:
2080
2080
type: string
2081
2081
enum:
2082
-
- ""
2083
-
- "1"
2084
-
- "2"
2082
+
- ''
2083
+
- 'value_one'
2084
+
- 'value_two'
2085
2085
title: TestEnum
2086
-
TestItem:
2086
+
ObjectWithEnum:
2087
2087
type: object
2088
-
required:
2089
-
- test
2090
2088
properties:
2091
-
test:
2092
-
type: integer
2093
-
title: test
2094
-
testEmum:
2095
-
$ref: '#/components/schemas/TestEnum'
2096
-
default: ""
2097
-
title: TestItem
2089
+
attribute:
2090
+
allOf:
2091
+
- $ref: '#/components/schemas/TestEnum'
2092
+
default: ''
2093
+
title: ObjectWithEnum
2094
+
ObjectWithInlineEnumDefaultValue:
2095
+
type: object
2096
+
properties:
2097
+
attribute:
2098
+
description: 'Object one attribute enum with default value'
Copy file name to clipboardExpand all lines: samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/.openapi-generator/FILES
Copy file name to clipboardExpand all lines: samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ObjectWithEnum.md
**attribute** | [**TestEnum**](TestEnum.md) | | [optional][default to TestEnum.empty]
13
12
14
13
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**attribute** | **String** | Object one attribute enum with default value | [optional][default to 'value_one']
12
+
13
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
Copy file name to clipboardExpand all lines: samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/deserialize.dart
Copy file name to clipboardExpand all lines: samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/object_with_enum.dart
0 commit comments