Nikolas Rimikis
1 year ago
57 changed files with 157 additions and 144 deletions
@ -0,0 +1,70 @@ |
|||||||
|
import 'package:built_collection/built_collection.dart'; |
||||||
|
import 'package:built_value/serializer.dart'; |
||||||
|
import 'package:built_value/standard_json_plugin.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/components.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/discriminator.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/header.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/info.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/license.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/media_type.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/open_api.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/operation.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/parameter.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/path_item.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/request_body.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/response.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/schema.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/security_scheme.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/server.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/server_variable.dart'; |
||||||
|
import 'package:dynamite/src/models/openapi/tag.dart'; |
||||||
|
|
||||||
|
export 'openapi/components.dart'; |
||||||
|
export 'openapi/discriminator.dart'; |
||||||
|
export 'openapi/header.dart'; |
||||||
|
export 'openapi/info.dart'; |
||||||
|
export 'openapi/license.dart'; |
||||||
|
export 'openapi/media_type.dart'; |
||||||
|
export 'openapi/open_api.dart'; |
||||||
|
export 'openapi/operation.dart'; |
||||||
|
export 'openapi/parameter.dart'; |
||||||
|
export 'openapi/path_item.dart'; |
||||||
|
export 'openapi/request_body.dart'; |
||||||
|
export 'openapi/response.dart'; |
||||||
|
export 'openapi/schema.dart'; |
||||||
|
export 'openapi/security_scheme.dart'; |
||||||
|
export 'openapi/server.dart'; |
||||||
|
export 'openapi/server_variable.dart'; |
||||||
|
export 'openapi/tag.dart'; |
||||||
|
|
||||||
|
part 'openapi.g.dart'; |
||||||
|
|
||||||
|
@SerializersFor([ |
||||||
|
Components, |
||||||
|
Discriminator, |
||||||
|
Header, |
||||||
|
Info, |
||||||
|
License, |
||||||
|
MediaType, |
||||||
|
OpenAPI, |
||||||
|
Operation, |
||||||
|
Parameter, |
||||||
|
PathItem, |
||||||
|
RequestBody, |
||||||
|
Response, |
||||||
|
Schema, |
||||||
|
SecurityScheme, |
||||||
|
Server, |
||||||
|
ServerVariable, |
||||||
|
Tag, |
||||||
|
]) |
||||||
|
final Serializers serializers = (_$serializers.toBuilder() |
||||||
|
..addBuilderFactory( |
||||||
|
const FullType(BuiltMap, [ |
||||||
|
FullType(String), |
||||||
|
FullType(BuiltList, [FullType(String)]), |
||||||
|
]), |
||||||
|
MapBuilder<String, BuiltList<String>>.new, |
||||||
|
) |
||||||
|
..addPlugin(StandardJsonPlugin())) |
||||||
|
.build(); |
@ -1,6 +1,6 @@ |
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||||
|
|
||||||
part of 'serializers.dart'; |
part of 'openapi.dart'; |
||||||
|
|
||||||
// ************************************************************************** |
// ************************************************************************** |
||||||
// BuiltValueGenerator |
// BuiltValueGenerator |
@ -1,8 +1,8 @@ |
|||||||
import 'package:built_collection/built_collection.dart'; |
import 'package:built_collection/built_collection.dart'; |
||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/models/schema.dart'; |
import 'package:dynamite/src/models/openapi/schema.dart'; |
||||||
import 'package:dynamite/src/models/security_scheme.dart'; |
import 'package:dynamite/src/models/openapi/security_scheme.dart'; |
||||||
|
|
||||||
part 'components.g.dart'; |
part 'components.g.dart'; |
||||||
|
|
@ -1,6 +1,6 @@ |
|||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/models/schema.dart'; |
import 'package:dynamite/src/models/openapi/schema.dart'; |
||||||
|
|
||||||
part 'header.g.dart'; |
part 'header.g.dart'; |
||||||
|
|
@ -1,6 +1,6 @@ |
|||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/models/license.dart'; |
import 'package:dynamite/src/models/openapi/license.dart'; |
||||||
|
|
||||||
part 'info.g.dart'; |
part 'info.g.dart'; |
||||||
|
|
@ -1,6 +1,6 @@ |
|||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/models/schema.dart'; |
import 'package:dynamite/src/models/openapi/schema.dart'; |
||||||
|
|
||||||
part 'media_type.g.dart'; |
part 'media_type.g.dart'; |
||||||
|
|
@ -1,11 +1,11 @@ |
|||||||
import 'package:built_collection/built_collection.dart'; |
import 'package:built_collection/built_collection.dart'; |
||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/models/components.dart'; |
import 'package:dynamite/src/models/openapi/components.dart'; |
||||||
import 'package:dynamite/src/models/info.dart'; |
import 'package:dynamite/src/models/openapi/info.dart'; |
||||||
import 'package:dynamite/src/models/path_item.dart'; |
import 'package:dynamite/src/models/openapi/path_item.dart'; |
||||||
import 'package:dynamite/src/models/server.dart'; |
import 'package:dynamite/src/models/openapi/server.dart'; |
||||||
import 'package:dynamite/src/models/tag.dart'; |
import 'package:dynamite/src/models/openapi/tag.dart'; |
||||||
|
|
||||||
part 'open_api.g.dart'; |
part 'open_api.g.dart'; |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/helpers/dynamite.dart'; |
import 'package:dynamite/src/helpers/dynamite.dart'; |
||||||
import 'package:dynamite/src/models/schema.dart'; |
import 'package:dynamite/src/models/openapi/schema.dart'; |
||||||
|
|
||||||
part 'parameter.g.dart'; |
part 'parameter.g.dart'; |
||||||
|
|
@ -1,8 +1,8 @@ |
|||||||
import 'package:built_collection/built_collection.dart'; |
import 'package:built_collection/built_collection.dart'; |
||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/models/operation.dart'; |
import 'package:dynamite/src/models/openapi/operation.dart'; |
||||||
import 'package:dynamite/src/models/parameter.dart'; |
import 'package:dynamite/src/models/openapi/parameter.dart'; |
||||||
|
|
||||||
part 'path_item.g.dart'; |
part 'path_item.g.dart'; |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
import 'package:built_collection/built_collection.dart'; |
import 'package:built_collection/built_collection.dart'; |
||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/models/media_type.dart'; |
import 'package:dynamite/src/models/openapi/media_type.dart'; |
||||||
|
|
||||||
part 'request_body.g.dart'; |
part 'request_body.g.dart'; |
||||||
|
|
@ -1,8 +1,8 @@ |
|||||||
import 'package:built_collection/built_collection.dart'; |
import 'package:built_collection/built_collection.dart'; |
||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/models/header.dart'; |
import 'package:dynamite/src/models/openapi/header.dart'; |
||||||
import 'package:dynamite/src/models/media_type.dart'; |
import 'package:dynamite/src/models/openapi/media_type.dart'; |
||||||
|
|
||||||
part 'response.g.dart'; |
part 'response.g.dart'; |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
import 'package:built_collection/built_collection.dart'; |
import 'package:built_collection/built_collection.dart'; |
||||||
import 'package:built_value/built_value.dart'; |
import 'package:built_value/built_value.dart'; |
||||||
import 'package:built_value/serializer.dart'; |
import 'package:built_value/serializer.dart'; |
||||||
import 'package:dynamite/src/models/server_variable.dart'; |
import 'package:dynamite/src/models/openapi/server_variable.dart'; |
||||||
|
|
||||||
part 'server.g.dart'; |
part 'server.g.dart'; |
||||||
|
|
@ -1,52 +0,0 @@ |
|||||||
import 'package:built_collection/built_collection.dart'; |
|
||||||
import 'package:built_value/serializer.dart'; |
|
||||||
import 'package:built_value/standard_json_plugin.dart'; |
|
||||||
import 'package:dynamite/src/models/components.dart'; |
|
||||||
import 'package:dynamite/src/models/discriminator.dart'; |
|
||||||
import 'package:dynamite/src/models/header.dart'; |
|
||||||
import 'package:dynamite/src/models/info.dart'; |
|
||||||
import 'package:dynamite/src/models/license.dart'; |
|
||||||
import 'package:dynamite/src/models/media_type.dart'; |
|
||||||
import 'package:dynamite/src/models/open_api.dart'; |
|
||||||
import 'package:dynamite/src/models/operation.dart'; |
|
||||||
import 'package:dynamite/src/models/parameter.dart'; |
|
||||||
import 'package:dynamite/src/models/path_item.dart'; |
|
||||||
import 'package:dynamite/src/models/request_body.dart'; |
|
||||||
import 'package:dynamite/src/models/response.dart'; |
|
||||||
import 'package:dynamite/src/models/schema.dart'; |
|
||||||
import 'package:dynamite/src/models/security_scheme.dart'; |
|
||||||
import 'package:dynamite/src/models/server.dart'; |
|
||||||
import 'package:dynamite/src/models/server_variable.dart'; |
|
||||||
import 'package:dynamite/src/models/tag.dart'; |
|
||||||
|
|
||||||
part 'serializers.g.dart'; |
|
||||||
|
|
||||||
@SerializersFor([ |
|
||||||
Components, |
|
||||||
Discriminator, |
|
||||||
Header, |
|
||||||
Info, |
|
||||||
License, |
|
||||||
MediaType, |
|
||||||
OpenAPI, |
|
||||||
Operation, |
|
||||||
Parameter, |
|
||||||
PathItem, |
|
||||||
RequestBody, |
|
||||||
Response, |
|
||||||
Schema, |
|
||||||
SecurityScheme, |
|
||||||
Server, |
|
||||||
ServerVariable, |
|
||||||
Tag, |
|
||||||
]) |
|
||||||
final Serializers serializers = (_$serializers.toBuilder() |
|
||||||
..addBuilderFactory( |
|
||||||
const FullType(BuiltMap, [ |
|
||||||
FullType(String), |
|
||||||
FullType(BuiltList, [FullType(String)]), |
|
||||||
]), |
|
||||||
MapBuilder<String, BuiltList<String>>.new, |
|
||||||
) |
|
||||||
..addPlugin(StandardJsonPlugin())) |
|
||||||
.build(); |
|
@ -0,0 +1 @@ |
|||||||
|
export 'type_result/type_result.dart'; |
Loading…
Reference in new issue