Skip to content

Commit

Permalink
chore: regenerate libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolas Rimikis <[email protected]>
  • Loading branch information
Leptopoda committed Dec 29, 2023
1 parent e81a3e9 commit f959f60
Show file tree
Hide file tree
Showing 37 changed files with 11,572 additions and 163 deletions.
65 changes: 60 additions & 5 deletions packages/dynamite/dynamite/example/lib/petstore.openapi.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
// Use of this source code is governed by a Apache 2.0 license. It can be obtained at https://www.apache.org/licenses/LICENSE-2.0.html.

// OpenAPI client generated by Dynamite. Do not manually edit this file.

// ignore_for_file: camel_case_types, discarded_futures
// ignore_for_file: no_leading_underscores_for_local_identifiers
// ignore_for_file: public_member_api_docs, unreachable_switch_case

library petstore_openapi;
/// Swagger Petstore Version: 1.0.0.
///
/// A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification.
///
/// You can contact the Swagger API Team team under:
/// Email: `[email protected]`.
/// Website: `http://swagger.io`.
///
/// Use of this source code is governed by a Apache 2.0 license.
/// It can be obtained at https://www.apache.org/licenses/LICENSE-2.0.html.
///
/// Usage of these apis must adhere to the terms of service: `http://swagger.io/terms/`.
library;

import 'dart:convert';
import 'dart:typed_data';
Expand All @@ -20,6 +36,7 @@ import 'package:uri/uri.dart';
part 'petstore.openapi.g.dart';

class $Client extends DynamiteClient {
/// Creates a new [DynamiteClient] for untagged requests.
$Client(
super.baseURL, {
super.baseHeaders,
Expand All @@ -28,6 +45,7 @@ class $Client extends DynamiteClient {
super.cookieJar,
});

/// Creates a new [$Client] from another [client].
$Client.fromClient(DynamiteClient client)
: super(
client.baseURL,
Expand All @@ -39,9 +57,9 @@ class $Client extends DynamiteClient {

/// Returns all pets from the system that the user has access to.
/// Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia.
/// .
///
/// Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien.
/// .
///
///
/// Returns a [Future] containing a [DynamiteResponse] with the status code, deserialized body and headers.
/// Throws a [DynamiteApiException] if the API call does not return an expected status code.
Expand Down Expand Up @@ -70,9 +88,9 @@ class $Client extends DynamiteClient {

/// Returns all pets from the system that the user has access to.
/// Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia.
/// .
///
/// Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien.
/// .
///
///
/// This method and the response it returns is experimental. The API might change without a major version bump.
///
Expand Down Expand Up @@ -301,81 +319,113 @@ class $Client extends DynamiteClient {
}
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $NewPetInterface {
String get name;
String? get tag;
}

abstract class NewPet implements $NewPetInterface, Built<NewPet, NewPetBuilder> {
/// Creates a new NewPet object using the builder pattern.
factory NewPet([void Function(NewPetBuilder)? b]) = _$NewPet;

// coverage:ignore-start
const NewPet._();
// coverage:ignore-end

/// Creates a new object from the given [json] data.
///
/// Use [toJson] to serialize it back into json.
// coverage:ignore-start
factory NewPet.fromJson(Map<String, dynamic> json) => jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end

/// Parses this object into a json like map.
///
/// Use the fromJson factory to revive it again.
// coverage:ignore-start
Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end

/// Serializer for NewPet.
static Serializer<NewPet> get serializer => _$newPetSerializer;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $Pet_1Interface {
int get id;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $PetInterface implements $NewPetInterface, $Pet_1Interface {}

abstract class Pet implements $PetInterface, Built<Pet, PetBuilder> {
/// Creates a new Pet object using the builder pattern.
factory Pet([void Function(PetBuilder)? b]) = _$Pet;

// coverage:ignore-start
const Pet._();
// coverage:ignore-end

/// Creates a new object from the given [json] data.
///
/// Use [toJson] to serialize it back into json.
// coverage:ignore-start
factory Pet.fromJson(Map<String, dynamic> json) => jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end

/// Parses this object into a json like map.
///
/// Use the fromJson factory to revive it again.
// coverage:ignore-start
Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end

/// Serializer for Pet.
static Serializer<Pet> get serializer => _$petSerializer;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $ErrorInterface {
int get code;
String get message;
}

abstract class Error implements $ErrorInterface, Built<Error, ErrorBuilder> {
/// Creates a new Error object using the builder pattern.
factory Error([void Function(ErrorBuilder)? b]) = _$Error;

// coverage:ignore-start
const Error._();
// coverage:ignore-end

/// Creates a new object from the given [json] data.
///
/// Use [toJson] to serialize it back into json.
// coverage:ignore-start
factory Error.fromJson(Map<String, dynamic> json) => jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end

/// Parses this object into a json like map.
///
/// Use the fromJson factory to revive it again.
// coverage:ignore-start
Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end

/// Serializer for Error.
static Serializer<Error> get serializer => _$errorSerializer;
}

// coverage:ignore-start
/// Serializer for all values in this library.
///
/// Serializes values into the `built_value` wire format.
/// See: [jsonSerializers] for serializing into json.
@visibleForTesting
final Serializers serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), ListBuilder<String>.new)
Expand All @@ -387,6 +437,11 @@ final Serializers serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(Error), ErrorBuilder.new)
..add(Error.serializer))
.build();

/// Serializer for all values in this library.
///
/// Serializes values into the json. Json serialization is more expensive than the built_value wire format.
/// See: [serializers] for serializing into the `built_value` wire format.
@visibleForTesting
final Serializers jsonSerializers = (serializers.toBuilder()
..add(DynamiteDoubleSerializer())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// OpenAPI client generated by Dynamite. Do not manually edit this file.

// ignore_for_file: camel_case_extensions, camel_case_types, discarded_futures
// ignore_for_file: no_leading_underscores_for_local_identifiers
// ignore_for_file: public_member_api_docs, unreachable_switch_case
// ignore_for_file: unused_element

library all_of_openapi;
/// all of test Version: 0.0.1.
library;

import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
Expand All @@ -13,54 +16,78 @@ import 'package:meta/meta.dart';

part 'all_of.openapi.g.dart';

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $ObjectAllOf_0Interface {
@BuiltValueField(wireName: 'attribute1-allOf')
String get attribute1AllOf;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $ObjectAllOf_1Interface {
@BuiltValueField(wireName: 'attribute2-allOf')
String get attribute2AllOf;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $ObjectAllOfInterface implements $ObjectAllOf_0Interface, $ObjectAllOf_1Interface {}

/// All of with objects only.
abstract class ObjectAllOf implements $ObjectAllOfInterface, Built<ObjectAllOf, ObjectAllOfBuilder> {
/// Creates a new ObjectAllOf object using the builder pattern.
factory ObjectAllOf([void Function(ObjectAllOfBuilder)? b]) = _$ObjectAllOf;

const ObjectAllOf._();

/// Creates a new object from the given [json] data.
///
/// Use [toJson] to serialize it back into json.
factory ObjectAllOf.fromJson(Map<String, dynamic> json) => jsonSerializers.deserializeWith(serializer, json)!;

/// Parses this object into a json like map.
///
/// Use the fromJson factory to revive it again.
Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;

/// Serializer for ObjectAllOf.
static Serializer<ObjectAllOf> get serializer => _$objectAllOfSerializer;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $OneObjectAllOf_0Interface {
@BuiltValueField(wireName: 'attribute-allOf')
String get attributeAllOf;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $OneObjectAllOfInterface implements $OneObjectAllOf_0Interface {}

/// All of with one object value.
abstract class OneObjectAllOf implements $OneObjectAllOfInterface, Built<OneObjectAllOf, OneObjectAllOfBuilder> {
/// Creates a new OneObjectAllOf object using the builder pattern.
factory OneObjectAllOf([void Function(OneObjectAllOfBuilder)? b]) = _$OneObjectAllOf;

const OneObjectAllOf._();

/// Creates a new object from the given [json] data.
///
/// Use [toJson] to serialize it back into json.
factory OneObjectAllOf.fromJson(Map<String, dynamic> json) => jsonSerializers.deserializeWith(serializer, json)!;

/// Parses this object into a json like map.
///
/// Use the fromJson factory to revive it again.
Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;

/// Serializer for OneObjectAllOf.
static Serializer<OneObjectAllOf> get serializer => _$oneObjectAllOfSerializer;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $PrimitiveAllOfInterface {
@BuiltValueField(wireName: 'int')
Expand All @@ -69,61 +96,95 @@ abstract interface class $PrimitiveAllOfInterface {
String get string;
}

/// All of with an primitive values.
abstract class PrimitiveAllOf implements $PrimitiveAllOfInterface, Built<PrimitiveAllOf, PrimitiveAllOfBuilder> {
/// Creates a new PrimitiveAllOf object using the builder pattern.
factory PrimitiveAllOf([void Function(PrimitiveAllOfBuilder)? b]) = _$PrimitiveAllOf;

const PrimitiveAllOf._();

/// Creates a new object from the given [json] data.
///
/// Use [toJson] to serialize it back into json.
factory PrimitiveAllOf.fromJson(Map<String, dynamic> json) => jsonSerializers.deserializeWith(serializer, json)!;

/// Parses this object into a json like map.
///
/// Use the fromJson factory to revive it again.
Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;

/// Serializer for PrimitiveAllOf.
static Serializer<PrimitiveAllOf> get serializer => _$primitiveAllOfSerializer;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $MixedAllOf_1Interface {
@BuiltValueField(wireName: 'attribute-allOf')
String get attributeAllOf;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $MixedAllOfInterface implements $MixedAllOf_1Interface {
@BuiltValueField(wireName: 'String')
String get string;
}

/// All of with object and primitive value.
abstract class MixedAllOf implements $MixedAllOfInterface, Built<MixedAllOf, MixedAllOfBuilder> {
/// Creates a new MixedAllOf object using the builder pattern.
factory MixedAllOf([void Function(MixedAllOfBuilder)? b]) = _$MixedAllOf;

const MixedAllOf._();

/// Creates a new object from the given [json] data.
///
/// Use [toJson] to serialize it back into json.
factory MixedAllOf.fromJson(Map<String, dynamic> json) => jsonSerializers.deserializeWith(serializer, json)!;

/// Parses this object into a json like map.
///
/// Use the fromJson factory to revive it again.
Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;

/// Serializer for MixedAllOf.
static Serializer<MixedAllOf> get serializer => _$mixedAllOfSerializer;
}

/// @nodoc
@BuiltValue(instantiable: false)
abstract interface class $OneValueAllOfInterface {
@BuiltValueField(wireName: 'String')
String get string;
}

/// All of with one primitive value.
abstract class OneValueAllOf implements $OneValueAllOfInterface, Built<OneValueAllOf, OneValueAllOfBuilder> {
/// Creates a new OneValueAllOf object using the builder pattern.
factory OneValueAllOf([void Function(OneValueAllOfBuilder)? b]) = _$OneValueAllOf;

const OneValueAllOf._();

/// Creates a new object from the given [json] data.
///
/// Use [toJson] to serialize it back into json.
factory OneValueAllOf.fromJson(Map<String, dynamic> json) => jsonSerializers.deserializeWith(serializer, json)!;

/// Parses this object into a json like map.
///
/// Use the fromJson factory to revive it again.
Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;

/// Serializer for OneValueAllOf.
static Serializer<OneValueAllOf> get serializer => _$oneValueAllOfSerializer;
}

// coverage:ignore-start
/// Serializer for all values in this library.
///
/// Serializes values into the `built_value` wire format.
/// See: [jsonSerializers] for serializing into json.
@visibleForTesting
final Serializers serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(ObjectAllOf), ObjectAllOfBuilder.new)
Expand All @@ -137,6 +198,11 @@ final Serializers serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(OneValueAllOf), OneValueAllOfBuilder.new)
..add(OneValueAllOf.serializer))
.build();

/// Serializer for all values in this library.
///
/// Serializes values into the json. Json serialization is more expensive than the built_value wire format.
/// See: [serializers] for serializing into the `built_value` wire format.
@visibleForTesting
final Serializers jsonSerializers = (serializers.toBuilder()
..add(DynamiteDoubleSerializer())
Expand Down
Loading

0 comments on commit f959f60

Please sign in to comment.