fix handling for lower enum cases and fixed tests

This commit is contained in:
Florian Weihl 2025-05-09 14:09:37 +02:00
parent bde341ad62
commit 5c9fce26db
323 changed files with 2503 additions and 2583 deletions

View File

@ -58,7 +58,7 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
@Setter protected String pubRepository = null;
@Setter protected String pubPublishTo = null;
@Setter protected boolean useEnumExtension = false;
@Setter protected boolean useLowerCamelCase = true;
@Setter protected boolean useLowerCamelCase = false;
@Setter protected String sourceFolder = "src";
protected String libPath = "lib" + File.separator;
protected String apiDocPath = "doc/";
@ -306,9 +306,9 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
}
if (additionalProperties.containsKey(USE_LOWER_CAMEL_CASE)) {
this.setUseEnumExtension(convertPropertyToBooleanAndWriteBack(USE_LOWER_CAMEL_CASE));
this.setUseLowerCamelCase(convertPropertyToBooleanAndWriteBack(USE_LOWER_CAMEL_CASE));
} else {
additionalProperties.put(USE_ENUM_EXTENSION, useLowerCamelCase);
additionalProperties.put(USE_LOWER_CAMEL_CASE, useLowerCamelCase);
}
if (additionalProperties.containsKey(CodegenConstants.SOURCE_FOLDER)) {
@ -395,8 +395,8 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
}
name = name.replaceAll("^_", "");
// if it's all upper case, do nothing
if (!useLowerCamelCase && name.matches("^[A-Z_]*$")) {
// if it's all upper case and more than two letters
if (name.matches("^[A-Z_]*$")) {
return name;
}
@ -408,14 +408,9 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
// remove the rest
name = sanitizeName(name);
if (useLowerCamelCase) {
//to camelize it correctly it needs to be lower cased
name = camelize(name.toLowerCase(), LOWERCASE_FIRST_LETTER);
} else {
// camelize (lower first character) the variable name
// pet_id => petId
name = camelize(name, LOWERCASE_FIRST_LETTER);
}
// camelize (lower first character) the variable name
// pet_id => petI
name = camelize(name, LOWERCASE_FIRST_LETTER);
if (name.matches("^\\d.*")) {
name = "n" + name;
@ -746,9 +741,14 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
return enumNameMapping.get(value);
}
if (value.length() == 0) {
if (value.isEmpty()) {
return "empty";
}
if (useLowerCamelCase && value.matches("^[A-Z_]*$")) {
value = value.toLowerCase();
}
if (("number".equalsIgnoreCase(datatype) ||
"double".equalsIgnoreCase(datatype) ||
"int".equalsIgnoreCase(datatype)) &&

View File

@ -52,6 +52,7 @@ public class DartClientOptionsTest extends AbstractOptionsTest {
verify(clientCodegen).setPubPublishTo(DartClientOptionsProvider.PUB_PUBLISH_TO_VALUE);
verify(clientCodegen).setSourceFolder(DartClientOptionsProvider.SOURCE_FOLDER_VALUE);
verify(clientCodegen).setUseEnumExtension(Boolean.parseBoolean(DartClientOptionsProvider.USE_ENUM_EXTENSION));
verify(clientCodegen).setUseLowerCamelCase(Boolean.parseBoolean(DartClientOptionsProvider.USE_LOWER_CAMEL_CASE));
verify(clientCodegen).setEnumUnknownDefaultCase(Boolean.parseBoolean(DartClientOptionsProvider.ENUM_UNKNOWN_DEFAULT_CASE_VALUE));
}
}

View File

@ -54,6 +54,7 @@ public class DartDioClientOptionsTest extends AbstractOptionsTest {
verify(clientCodegen).setDateLibrary(DartDioClientCodegen.DATE_LIBRARY_DEFAULT);
verify(clientCodegen).setLibrary(DartDioClientCodegen.SERIALIZATION_LIBRARY_DEFAULT);
verify(clientCodegen).setEqualityCheckMethod(DartDioClientCodegen.EQUALITY_CHECK_METHOD_DEFAULT);
verify(clientCodegen).setUseLowerCamelCase(Boolean.parseBoolean(DartDioClientOptionsProvider.USE_LOWER_CAMEL_CASE));
verify(clientCodegen).setEnumUnknownDefaultCase(Boolean.parseBoolean(DartDioClientOptionsProvider.ENUM_UNKNOWN_DEFAULT_CASE_VALUE));
}
}

View File

@ -38,6 +38,7 @@ public class DartClientOptionsProvider implements OptionsProvider {
public static final String PUB_PUBLISH_TO_VALUE = "Publish To";
public static final String SOURCE_FOLDER_VALUE = "src";
public static final String USE_ENUM_EXTENSION = "true";
public static final String USE_LOWER_CAMEL_CASE = "false";
public static final String ALLOW_UNICODE_IDENTIFIERS_VALUE = "false";
public static final String PREPEND_FORM_OR_BODY_PARAMETERS_VALUE = "true";
public static final String ENUM_UNKNOWN_DEFAULT_CASE_VALUE = "false";
@ -64,6 +65,7 @@ public class DartClientOptionsProvider implements OptionsProvider {
.put(DartClientCodegen.PUB_PUBLISH_TO, PUB_PUBLISH_TO_VALUE)
.put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE)
.put(DartClientCodegen.USE_ENUM_EXTENSION, USE_ENUM_EXTENSION)
.put(DartClientCodegen.USE_LOWER_CAMEL_CASE, USE_LOWER_CAMEL_CASE)
.put(CodegenConstants.ALLOW_UNICODE_IDENTIFIERS, ALLOW_UNICODE_IDENTIFIERS_VALUE)
.put(CodegenConstants.PREPEND_FORM_OR_BODY_PARAMETERS, PREPEND_FORM_OR_BODY_PARAMETERS_VALUE)
.put(CodegenConstants.LEGACY_DISCRIMINATOR_BEHAVIOR, "true")

View File

@ -40,6 +40,7 @@ public class DartDioClientOptionsProvider implements OptionsProvider {
public static final String PUB_REPOSITORY_VALUE = "Repository";
public static final String PUB_PUBLISH_TO_VALUE = "Publish to";
public static final String ENUM_UNKNOWN_DEFAULT_CASE_VALUE = "false";
public static final String USE_LOWER_CAMEL_CASE = "false";
@Override
public String getLanguage() {
@ -67,6 +68,7 @@ public class DartDioClientOptionsProvider implements OptionsProvider {
.put(DartDioClientCodegen.EQUALITY_CHECK_METHOD, DartDioClientCodegen.EQUALITY_CHECK_METHOD_DEFAULT)
.put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE)
.put(DartDioClientCodegen.USE_ENUM_EXTENSION, USE_ENUM_EXTENSION)
.put(DartDioClientCodegen.USE_LOWER_CAMEL_CASE, USE_LOWER_CAMEL_CASE)
.put(CodegenConstants.ALLOW_UNICODE_IDENTIFIERS, ALLOW_UNICODE_IDENTIFIERS_VALUE)
.put(CodegenConstants.PREPEND_FORM_OR_BODY_PARAMETERS, PREPEND_FORM_OR_BODY_PARAMETERS_VALUE)
.put(CodegenConstants.LEGACY_DISCRIMINATOR_BEHAVIOR, "true")

View File

@ -1668,6 +1668,11 @@ components:
- _abc
- '-efg'
- (xyz)
- TEST
- TEST_A
- TEST_A_ABC
- TEST_a
- tEST
Enum_Test:
type: object
required:

View File

@ -49,10 +49,10 @@ import 'package:openapi/openapi.dart';
final api = Openapi().getBarApi();
final BarCreate barcreate = ; // BarCreate |
final BarCreate barCreate = ; // BarCreate |
try {
final response = await api.createBar(barcreate);
final response = await api.createBar(barCreate);
print(response);
} catch on DioException (e) {
print("Exception when calling BarApi->createBar: $e\n");

View File

@ -9,12 +9,12 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | |
**barpropa** | **String** | | [optional]
**foopropb** | **String** | | [optional]
**barPropA** | **String** | | [optional]
**fooPropB** | **String** | | [optional]
**foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional]
**href** | **String** | Hyperlink reference | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -13,7 +13,7 @@ Method | HTTP request | Description
# **createBar**
> Bar createBar(barcreate)
> Bar createBar(barCreate)
Create a Bar
@ -22,10 +22,10 @@ Create a Bar
import 'package:openapi/api.dart';
final api = Openapi().getBarApi();
final BarCreate barcreate = ; // BarCreate |
final BarCreate barCreate = ; // BarCreate |
try {
final response = api.createBar(barcreate);
final response = api.createBar(barCreate);
print(response);
} catch on DioException (e) {
print('Exception when calling BarApi->createBar: $e\n');
@ -36,7 +36,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**barcreate** | [**BarCreate**](BarCreate.md)| |
**barCreate** | [**BarCreate**](BarCreate.md)| |
### Return type

View File

@ -8,13 +8,13 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**barpropa** | **String** | | [optional]
**foopropb** | **String** | | [optional]
**barPropA** | **String** | | [optional]
**fooPropB** | **String** | | [optional]
**foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional]
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -9,11 +9,11 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Name of the related entity. | [optional]
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -9,15 +9,15 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | unique identifier |
**barpropa** | **String** | | [optional]
**foopropb** | **String** | | [optional]
**barPropA** | **String** | | [optional]
**fooPropB** | **String** | | [optional]
**foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional]
**href** | **String** | Hyperlink reference | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
**name** | **String** | Name of the related entity. | [optional]
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -10,8 +10,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -9,11 +9,11 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Name of the related entity. | [optional]
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,8 +8,8 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,12 +8,12 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**foopropa** | **String** | | [optional]
**foopropb** | **String** | | [optional]
**fooPropA** | **String** | | [optional]
**fooPropB** | **String** | | [optional]
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,13 +8,13 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**foorefpropa** | **String** | | [optional]
**foorefPropA** | **String** | | [optional]
**name** | **String** | Name of the related entity. | [optional]
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,16 +8,16 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**foopropa** | **String** | | [optional]
**foopropb** | **String** | | [optional]
**fooPropA** | **String** | | [optional]
**fooPropB** | **String** | | [optional]
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
**foorefpropa** | **String** | | [optional]
**foorefPropA** | **String** | | [optional]
**name** | **String** | Name of the related entity. | [optional]
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**fruittype** | [**FruitType**](FruitType.md) | |
**fruitType** | [**FruitType**](FruitType.md) | |
**seeds** | **int** | |
**length** | **int** | |

View File

@ -11,8 +11,8 @@ Name | Type | Description | Notes
**vendor** | **String** | | [optional]
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,11 +8,11 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**pizzasize** | **num** | | [optional]
**pizzaSize** | **num** | | [optional]
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -9,11 +9,11 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**toppings** | **String** | | [optional]
**pizzasize** | **num** | | [optional]
**pizzaSize** | **num** | | [optional]
**href** | **String** | Hyperlink reference | [optional]
**id** | **String** | unique identifier | [optional]
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -23,7 +23,7 @@ class BarApi {
///
///
/// Parameters:
/// * [barcreate]
/// * [barCreate]
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -34,7 +34,7 @@ class BarApi {
/// Returns a [Future] containing a [Response] with a [Bar] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<Bar>> createBar({
required BarCreate barcreate,
required BarCreate barCreate,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -60,7 +60,7 @@ class BarApi {
try {
const _type = FullType(BarCreate);
_bodyData = _serializers.serialize(barcreate, specifiedType: _type);
_bodyData = _serializers.serialize(barCreate, specifiedType: _type);
} catch(error, stackTrace) {
throw DioException(

View File

@ -14,23 +14,23 @@ part 'bar.g.dart';
///
/// Properties:
/// * [id]
/// * [barpropa]
/// * [foopropb]
/// * [barPropA]
/// * [fooPropB]
/// * [foo]
/// * [href] - Hyperlink reference
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue()
abstract class Bar implements Entity, Built<Bar, BarBuilder> {
@BuiltValueField(wireName: r'foo')
FooRefOrValue? get foo;
@BuiltValueField(wireName: r'barPropA')
String? get barpropa;
@BuiltValueField(wireName: r'fooPropB')
String? get foopropb;
String? get fooPropB;
@BuiltValueField(wireName: r'barPropA')
String? get barPropA;
Bar._();
@ -55,10 +55,10 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
Bar object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atSchemalocation != null) {
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
@ -69,6 +69,20 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
specifiedType: const FullType(FooRefOrValue),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.fooPropB != null) {
yield r'fooPropB';
yield serializers.serialize(
object.fooPropB,
specifiedType: const FullType(String),
);
}
if (object.href != null) {
yield r'href';
yield serializers.serialize(
@ -83,32 +97,18 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
specifiedType: const FullType(String),
);
}
if (object.barpropa != null) {
yield r'barPropA';
yield serializers.serialize(
object.barpropa,
specifiedType: const FullType(String),
);
}
if (object.foopropb != null) {
yield r'fooPropB';
yield serializers.serialize(
object.foopropb,
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
specifiedType: const FullType(String),
);
if (object.barPropA != null) {
yield r'barPropA';
yield serializers.serialize(
object.barPropA,
specifiedType: const FullType(String),
);
}
}
@override
@ -137,7 +137,7 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
result.atSchemaLocation = valueDes;
break;
case r'foo':
final valueDes = serializers.deserialize(
@ -146,6 +146,20 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
) as FooRefOrValue;
result.foo.replace(valueDes);
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'fooPropB':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.fooPropB = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
value,
@ -160,27 +174,6 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
) as String;
result.id = valueDes;
break;
case r'barPropA':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.barpropa = valueDes;
break;
case r'fooPropB':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.foopropb = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,
@ -188,6 +181,13 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
) as String;
result.atType = valueDes;
break;
case r'barPropA':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.barPropA = valueDes;
break;
default:
unhandled.add(key);
unhandled.add(value);

View File

@ -13,24 +13,24 @@ part 'bar_create.g.dart';
/// BarCreate
///
/// Properties:
/// * [barpropa]
/// * [foopropb]
/// * [barPropA]
/// * [fooPropB]
/// * [foo]
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue()
abstract class BarCreate implements Entity, Built<BarCreate, BarCreateBuilder> {
@BuiltValueField(wireName: r'foo')
FooRefOrValue? get foo;
@BuiltValueField(wireName: r'barPropA')
String? get barpropa;
@BuiltValueField(wireName: r'fooPropB')
String? get foopropb;
String? get fooPropB;
@BuiltValueField(wireName: r'barPropA')
String? get barPropA;
BarCreate._();
@ -55,10 +55,10 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
BarCreate object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atSchemalocation != null) {
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
@ -69,6 +69,20 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
specifiedType: const FullType(FooRefOrValue),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.fooPropB != null) {
yield r'fooPropB';
yield serializers.serialize(
object.fooPropB,
specifiedType: const FullType(String),
);
}
if (object.href != null) {
yield r'href';
yield serializers.serialize(
@ -83,32 +97,18 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
specifiedType: const FullType(String),
);
}
if (object.barpropa != null) {
yield r'barPropA';
yield serializers.serialize(
object.barpropa,
specifiedType: const FullType(String),
);
}
if (object.foopropb != null) {
yield r'fooPropB';
yield serializers.serialize(
object.foopropb,
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
specifiedType: const FullType(String),
);
if (object.barPropA != null) {
yield r'barPropA';
yield serializers.serialize(
object.barPropA,
specifiedType: const FullType(String),
);
}
}
@override
@ -137,7 +137,7 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
result.atSchemaLocation = valueDes;
break;
case r'foo':
final valueDes = serializers.deserialize(
@ -146,6 +146,20 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
) as FooRefOrValue;
result.foo.replace(valueDes);
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'fooPropB':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.fooPropB = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
value,
@ -160,27 +174,6 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
) as String;
result.id = valueDes;
break;
case r'barPropA':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.barpropa = valueDes;
break;
case r'fooPropB':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.foopropb = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,
@ -188,6 +181,13 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
) as String;
result.atType = valueDes;
break;
case r'barPropA':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.barPropA = valueDes;
break;
default:
unhandled.add(key);
unhandled.add(value);

View File

@ -13,11 +13,11 @@ part 'bar_ref.g.dart';
///
/// Properties:
/// * [name] - Name of the related entity.
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue()
abstract class BarRef implements EntityRef, Built<BarRef, BarRefBuilder> {
@ -44,17 +44,17 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
BarRef object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atSchemalocation != null) {
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
if (object.atReferredtype != null) {
if (object.atReferredType != null) {
yield r'@referredType';
yield serializers.serialize(
object.atReferredtype,
object.atReferredType,
specifiedType: const FullType(String),
);
}
@ -65,6 +65,13 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
specifiedType: const FullType(String),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.href != null) {
yield r'href';
yield serializers.serialize(
@ -79,13 +86,6 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
@ -119,14 +119,14 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
result.atSchemaLocation = valueDes;
break;
case r'@referredType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atReferredtype = valueDes;
result.atReferredType = valueDes;
break;
case r'name':
final valueDes = serializers.deserialize(
@ -135,6 +135,13 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
) as String;
result.name = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
value,
@ -149,13 +156,6 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
) as String;
result.id = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,

View File

@ -16,15 +16,15 @@ part 'bar_ref_or_value.g.dart';
///
/// Properties:
/// * [id] - unique identifier
/// * [barpropa]
/// * [foopropb]
/// * [barPropA]
/// * [fooPropB]
/// * [foo]
/// * [href] - Hyperlink reference
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
/// * [name] - Name of the related entity.
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
@BuiltValue()
abstract class BarRefOrValue implements Built<BarRefOrValue, BarRefOrValueBuilder> {
/// One Of [Bar], [BarRef]

View File

@ -21,8 +21,8 @@ part 'entity.g.dart';
/// Properties:
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue(instantiable: false)
abstract class Entity implements Addressable, Extensible {
@ -100,6 +100,20 @@ class _$EntitySerializer implements PrimitiveSerializer<Entity> {
Entity object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.href != null) {
yield r'href';
yield serializers.serialize(
@ -114,20 +128,6 @@ class _$EntitySerializer implements PrimitiveSerializer<Entity> {
specifiedType: const FullType(String),
);
}
if (object.atSchemalocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
@ -232,6 +232,20 @@ class _$$EntitySerializer implements PrimitiveSerializer<$Entity> {
final key = serializedList[i] as String;
final value = serializedList[i + 1];
switch (key) {
case r'@schemaLocation':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atSchemaLocation = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
value,
@ -246,20 +260,6 @@ class _$$EntitySerializer implements PrimitiveSerializer<$Entity> {
) as String;
result.id = valueDes;
break;
case r'@schemaLocation':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,

View File

@ -16,17 +16,17 @@ part 'entity_ref.g.dart';
///
/// Properties:
/// * [name] - Name of the related entity.
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue(instantiable: false)
abstract class EntityRef implements Addressable, Extensible {
/// The actual type of the target instance when needed for disambiguation.
@BuiltValueField(wireName: r'@referredType')
String? get atReferredtype;
String? get atReferredType;
/// Name of the related entity.
@BuiltValueField(wireName: r'name')
@ -78,17 +78,17 @@ class _$EntityRefSerializer implements PrimitiveSerializer<EntityRef> {
EntityRef object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atReferredtype != null) {
yield r'@referredType';
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atReferredtype,
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
if (object.atSchemalocation != null) {
yield r'@schemaLocation';
if (object.atReferredType != null) {
yield r'@referredType';
yield serializers.serialize(
object.atSchemalocation,
object.atReferredType,
specifiedType: const FullType(String),
);
}
@ -99,6 +99,13 @@ class _$EntityRefSerializer implements PrimitiveSerializer<EntityRef> {
specifiedType: const FullType(String),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.href != null) {
yield r'href';
yield serializers.serialize(
@ -113,13 +120,6 @@ class _$EntityRefSerializer implements PrimitiveSerializer<EntityRef> {
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
@ -204,19 +204,19 @@ class _$$EntityRefSerializer implements PrimitiveSerializer<$EntityRef> {
final key = serializedList[i] as String;
final value = serializedList[i + 1];
switch (key) {
case r'@referredType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atReferredtype = valueDes;
break;
case r'@schemaLocation':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
result.atSchemaLocation = valueDes;
break;
case r'@referredType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atReferredType = valueDes;
break;
case r'name':
final valueDes = serializers.deserialize(
@ -225,6 +225,13 @@ class _$$EntityRefSerializer implements PrimitiveSerializer<$EntityRef> {
) as String;
result.name = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
value,
@ -239,13 +246,6 @@ class _$$EntityRefSerializer implements PrimitiveSerializer<$EntityRef> {
) as String;
result.id = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,

View File

@ -11,18 +11,18 @@ part 'extensible.g.dart';
/// Extensible
///
/// Properties:
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue(instantiable: false)
abstract class Extensible {
/// A URI to a JSON-Schema file that defines additional attributes and relationships
@BuiltValueField(wireName: r'@schemaLocation')
String? get atSchemalocation;
String? get atSchemaLocation;
/// When sub-classing, this defines the super-class
@BuiltValueField(wireName: r'@baseType')
String? get atBasetype;
String? get atBaseType;
/// When sub-classing, this defines the sub-class Extensible name
@BuiltValueField(wireName: r'@type')
@ -44,17 +44,17 @@ class _$ExtensibleSerializer implements PrimitiveSerializer<Extensible> {
Extensible object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atSchemalocation != null) {
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
object.atBaseType,
specifiedType: const FullType(String),
);
}
@ -131,14 +131,14 @@ class _$$ExtensibleSerializer implements PrimitiveSerializer<$Extensible> {
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
result.atSchemaLocation = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
result.atBaseType = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(

View File

@ -12,20 +12,20 @@ part 'foo.g.dart';
/// Foo
///
/// Properties:
/// * [foopropa]
/// * [foopropb]
/// * [fooPropA]
/// * [fooPropB]
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue()
abstract class Foo implements Entity, Built<Foo, FooBuilder> {
@BuiltValueField(wireName: r'fooPropB')
String? get foopropb;
@BuiltValueField(wireName: r'fooPropA')
String? get foopropa;
String? get fooPropA;
@BuiltValueField(wireName: r'fooPropB')
String? get fooPropB;
Foo._();
@ -50,10 +50,31 @@ class _$FooSerializer implements PrimitiveSerializer<Foo> {
Foo object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atSchemalocation != null) {
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
if (object.fooPropA != null) {
yield r'fooPropA';
yield serializers.serialize(
object.fooPropA,
specifiedType: const FullType(String),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.fooPropB != null) {
yield r'fooPropB';
yield serializers.serialize(
object.fooPropB,
specifiedType: const FullType(String),
);
}
@ -71,27 +92,6 @@ class _$FooSerializer implements PrimitiveSerializer<Foo> {
specifiedType: const FullType(String),
);
}
if (object.foopropb != null) {
yield r'fooPropB';
yield serializers.serialize(
object.foopropb,
specifiedType: const FullType(String),
);
}
if (object.foopropa != null) {
yield r'fooPropA';
yield serializers.serialize(
object.foopropa,
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
@ -125,7 +125,28 @@ class _$FooSerializer implements PrimitiveSerializer<Foo> {
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
result.atSchemaLocation = valueDes;
break;
case r'fooPropA':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.fooPropA = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'fooPropB':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.fooPropB = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
@ -141,27 +162,6 @@ class _$FooSerializer implements PrimitiveSerializer<Foo> {
) as String;
result.id = valueDes;
break;
case r'fooPropB':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.foopropb = valueDes;
break;
case r'fooPropA':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.foopropa = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,

View File

@ -12,18 +12,18 @@ part 'foo_ref.g.dart';
/// FooRef
///
/// Properties:
/// * [foorefpropa]
/// * [foorefPropA]
/// * [name] - Name of the related entity.
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue()
abstract class FooRef implements EntityRef, Built<FooRef, FooRefBuilder> {
@BuiltValueField(wireName: r'foorefPropA')
String? get foorefpropa;
String? get foorefPropA;
FooRef._();
@ -48,17 +48,24 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
FooRef object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atSchemalocation != null) {
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
if (object.atReferredtype != null) {
if (object.atReferredType != null) {
yield r'@referredType';
yield serializers.serialize(
object.atReferredtype,
object.atReferredType,
specifiedType: const FullType(String),
);
}
if (object.foorefPropA != null) {
yield r'foorefPropA';
yield serializers.serialize(
object.foorefPropA,
specifiedType: const FullType(String),
);
}
@ -69,6 +76,13 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
specifiedType: const FullType(String),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.href != null) {
yield r'href';
yield serializers.serialize(
@ -83,20 +97,6 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
specifiedType: const FullType(String),
);
}
if (object.foorefpropa != null) {
yield r'foorefPropA';
yield serializers.serialize(
object.foorefpropa,
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
@ -130,14 +130,21 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
result.atSchemaLocation = valueDes;
break;
case r'@referredType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atReferredtype = valueDes;
result.atReferredType = valueDes;
break;
case r'foorefPropA':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.foorefPropA = valueDes;
break;
case r'name':
final valueDes = serializers.deserialize(
@ -146,6 +153,13 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
) as String;
result.name = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
value,
@ -160,20 +174,6 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
) as String;
result.id = valueDes;
break;
case r'foorefPropA':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.foorefpropa = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,

View File

@ -14,16 +14,16 @@ part 'foo_ref_or_value.g.dart';
/// FooRefOrValue
///
/// Properties:
/// * [foopropa]
/// * [foopropb]
/// * [fooPropA]
/// * [fooPropB]
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
/// * [foorefpropa]
/// * [foorefPropA]
/// * [name] - Name of the related entity.
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
@BuiltValue()
abstract class FooRefOrValue implements Built<FooRefOrValue, FooRefOrValueBuilder> {
/// One Of [Foo], [FooRef]

View File

@ -15,14 +15,14 @@ part 'fruit.g.dart';
/// Fruit
///
/// Properties:
/// * [fruittype]
/// * [fruitType]
/// * [seeds]
/// * [length]
@BuiltValue()
abstract class Fruit implements Built<Fruit, FruitBuilder> {
@BuiltValueField(wireName: r'fruitType')
FruitType get fruittype;
// enum fruittypeEnum { APPLE, BANANA, };
FruitType get fruitType;
// enum fruitTypeEnum { APPLE, BANANA, };
/// One Of [Apple], [Banana]
OneOf get oneOf;
@ -82,7 +82,7 @@ class _$FruitSerializer implements PrimitiveSerializer<Fruit> {
}) sync* {
yield r'fruitType';
yield serializers.serialize(
object.fruittype,
object.fruitType,
specifiedType: const FullType(FruitType),
);
}
@ -116,7 +116,7 @@ class _$FruitSerializer implements PrimitiveSerializer<Fruit> {
value,
specifiedType: const FullType(FruitType),
) as FruitType;
result.fruittype = valueDes;
result.fruitType = valueDes;
break;
default:
unhandled.add(key);

View File

@ -12,9 +12,9 @@ part 'fruit_type.g.dart';
class FruitType extends EnumClass {
@BuiltValueEnumConst(wireName: r'APPLE')
static const FruitType apple = _$apple;
static const FruitType APPLE = _$APPLE;
@BuiltValueEnumConst(wireName: r'BANANA')
static const FruitType banana = _$banana;
static const FruitType BANANA = _$BANANA;
@BuiltValueEnumConst(wireName: r'unknown_default_open_api', fallback: true)
static const FruitType unknownDefaultOpenApi = _$unknownDefaultOpenApi;

View File

@ -15,8 +15,8 @@ part 'pasta.g.dart';
/// * [vendor]
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue()
abstract class Pasta implements Entity, Built<Pasta, PastaBuilder> {
@ -46,6 +46,20 @@ class _$PastaSerializer implements PrimitiveSerializer<Pasta> {
Pasta object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.href != null) {
yield r'href';
yield serializers.serialize(
@ -60,20 +74,6 @@ class _$PastaSerializer implements PrimitiveSerializer<Pasta> {
specifiedType: const FullType(String),
);
}
if (object.atSchemalocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
@ -109,6 +109,20 @@ class _$PastaSerializer implements PrimitiveSerializer<Pasta> {
final key = serializedList[i] as String;
final value = serializedList[i + 1];
switch (key) {
case r'@schemaLocation':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atSchemaLocation = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
value,
@ -123,20 +137,6 @@ class _$PastaSerializer implements PrimitiveSerializer<Pasta> {
) as String;
result.id = valueDes;
break;
case r'@schemaLocation':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,

View File

@ -13,16 +13,16 @@ part 'pizza.g.dart';
/// Pizza
///
/// Properties:
/// * [pizzasize]
/// * [pizzaSize]
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue(instantiable: false)
abstract class Pizza implements Entity {
@BuiltValueField(wireName: r'pizzaSize')
num? get pizzasize;
num? get pizzaSize;
static const String discriminatorFieldName = r'@type';
@ -63,13 +63,27 @@ class _$PizzaSerializer implements PrimitiveSerializer<Pizza> {
Pizza object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.pizzasize != null) {
if (object.pizzaSize != null) {
yield r'pizzaSize';
yield serializers.serialize(
object.pizzasize,
object.pizzaSize,
specifiedType: const FullType(num),
);
}
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.href != null) {
yield r'href';
yield serializers.serialize(
@ -84,20 +98,6 @@ class _$PizzaSerializer implements PrimitiveSerializer<Pizza> {
specifiedType: const FullType(String),
);
}
if (object.atSchemalocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
@ -182,7 +182,21 @@ class _$$PizzaSerializer implements PrimitiveSerializer<$Pizza> {
value,
specifiedType: const FullType(num),
) as num;
result.pizzasize = valueDes;
result.pizzaSize = valueDes;
break;
case r'@schemaLocation':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atSchemaLocation = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
@ -198,20 +212,6 @@ class _$$PizzaSerializer implements PrimitiveSerializer<$Pizza> {
) as String;
result.id = valueDes;
break;
case r'@schemaLocation':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,

View File

@ -13,11 +13,11 @@ part 'pizza_speziale.g.dart';
///
/// Properties:
/// * [toppings]
/// * [pizzasize]
/// * [pizzaSize]
/// * [href] - Hyperlink reference
/// * [id] - unique identifier
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBasetype] - When sub-classing, this defines the super-class
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
/// * [atBaseType] - When sub-classing, this defines the super-class
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
@BuiltValue()
abstract class PizzaSpeziale implements Pizza, Built<PizzaSpeziale, PizzaSpezialeBuilder> {
@ -47,17 +47,17 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
PizzaSpeziale object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.atSchemalocation != null) {
if (object.atSchemaLocation != null) {
yield r'@schemaLocation';
yield serializers.serialize(
object.atSchemalocation,
object.atSchemaLocation,
specifiedType: const FullType(String),
);
}
if (object.pizzasize != null) {
if (object.pizzaSize != null) {
yield r'pizzaSize';
yield serializers.serialize(
object.pizzasize,
object.pizzaSize,
specifiedType: const FullType(num),
);
}
@ -68,6 +68,13 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
specifiedType: const FullType(String),
);
}
if (object.atBaseType != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBaseType,
specifiedType: const FullType(String),
);
}
if (object.href != null) {
yield r'href';
yield serializers.serialize(
@ -82,13 +89,6 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
specifiedType: const FullType(String),
);
}
if (object.atBasetype != null) {
yield r'@baseType';
yield serializers.serialize(
object.atBasetype,
specifiedType: const FullType(String),
);
}
yield r'@type';
yield serializers.serialize(
object.atType,
@ -122,14 +122,14 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
value,
specifiedType: const FullType(String),
) as String;
result.atSchemalocation = valueDes;
result.atSchemaLocation = valueDes;
break;
case r'pizzaSize':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(num),
) as num;
result.pizzasize = valueDes;
result.pizzaSize = valueDes;
break;
case r'toppings':
final valueDes = serializers.deserialize(
@ -138,6 +138,13 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
) as String;
result.toppings = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBaseType = valueDes;
break;
case r'href':
final valueDes = serializers.deserialize(
value,
@ -152,13 +159,6 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
) as String;
result.id = valueDes;
break;
case r'@baseType':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.atBasetype = valueDes;
break;
case r'@type':
final valueDes = serializers.deserialize(
value,

View File

@ -49,10 +49,10 @@ import 'package:openapi/openapi.dart';
final api = Openapi().getAnotherFakeApi();
final ModelClient modelclient = ; // ModelClient | client model
final ModelClient modelClient = ; // ModelClient | client model
try {
final response = await api.call123testSpecialTags(modelclient);
final response = await api.call123testSpecialTags(modelClient);
print(response);
} catch on DioException (e) {
print("Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n");

View File

@ -9,7 +9,7 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**username** | **String** | | [optional]
**singlereftype** | [**SingleRefType**](SingleRefType.md) | | [optional]
**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**classname** | **String** | |
**className** | **String** | |
**color** | **String** | | [optional] [default to 'red']
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -13,7 +13,7 @@ Method | HTTP request | Description
# **call123testSpecialTags**
> ModelClient call123testSpecialTags(modelclient)
> ModelClient call123testSpecialTags(modelClient)
To test special tags
@ -24,10 +24,10 @@ To test special tags and operation ID starting with number
import 'package:openapi/api.dart';
final api = Openapi().getAnotherFakeApi();
final ModelClient modelclient = ; // ModelClient | client model
final ModelClient modelClient = ; // ModelClient | client model
try {
final response = api.call123testSpecialTags(modelclient);
final response = api.call123testSpecialTags(modelClient);
print(response);
} catch on DioException (e) {
print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n');
@ -38,7 +38,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelclient** | [**ModelClient**](ModelClient.md)| client model |
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**arrayarraynumber** | [**List&lt;List&lt;num&gt;&gt;**](List.md) | | [optional]
**arrayArrayNumber** | [**List&lt;List&lt;num&gt;&gt;**](List.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**arraynumber** | **List&lt;num&gt;** | | [optional]
**arrayNumber** | **List&lt;num&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,12 +8,12 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**smallcamel** | **String** | | [optional]
**capitalcamel** | **String** | | [optional]
**smallCamel** | **String** | | [optional]
**capitalCamel** | **String** | | [optional]
**smallSnake** | **String** | | [optional]
**capitalSnake** | **String** | | [optional]
**scaEthFlowPoints** | **String** | | [optional]
**attName** | **String** | Name of the pet | [optional]
**sCAETHFlowPoints** | **String** | | [optional]
**ATT_NAME** | **String** | Name of the pet | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**classname** | **String** | |
**className** | **String** | |
**color** | **String** | | [optional] [default to 'red']
**declawed** | **bool** | | [optional]

View File

@ -9,8 +9,8 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **String** | | [optional]
**nullableproperty** | **String** | | [optional]
**otherproperty** | **String** | | [optional]
**nullableProperty** | **String** | | [optional]
**otherProperty** | **String** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**classname** | **String** | |
**className** | **String** | |
**color** | **String** | | [optional] [default to 'red']
**breed** | **String** | | [optional]

View File

@ -12,10 +12,10 @@ Name | Type | Description | Notes
**enumStringRequired** | **String** | |
**enumInteger** | **int** | | [optional]
**enumNumber** | **double** | | [optional]
**outerenum** | [**OuterEnum**](OuterEnum.md) | | [optional]
**outerenuminteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional]
**outerenumdefaultvalue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional]
**outerenumintegerdefaultvalue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional]
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional]
**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional]
**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -197,7 +197,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(outercomposite)
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
@ -208,10 +208,10 @@ Test serialization of object with outer number type
import 'package:openapi/api.dart';
final api = Openapi().getFakeApi();
final OuterComposite outercomposite = ; // OuterComposite | Input composite as post body
final OuterComposite outerComposite = ; // OuterComposite | Input composite as post body
try {
final response = api.fakeOuterCompositeSerialize(outercomposite);
final response = api.fakeOuterCompositeSerialize(outerComposite);
print(response);
} catch on DioException (e) {
print('Exception when calling FakeApi->fakeOuterCompositeSerialize: $e\n');
@ -222,7 +222,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**outercomposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
@ -326,7 +326,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **fakePropertyEnumIntegerSerialize**
> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty)
> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty)
@ -337,10 +337,10 @@ Test serialization of enum (int) properties with examples
import 'package:openapi/api.dart';
final api = Openapi().getFakeApi();
final OuterObjectWithEnumProperty outerobjectwithenumproperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body
final OuterObjectWithEnumProperty outerObjectWithEnumProperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body
try {
final response = api.fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty);
final response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty);
print(response);
} catch on DioException (e) {
print('Exception when calling FakeApi->fakePropertyEnumIntegerSerialize: $e\n');
@ -351,7 +351,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**outerobjectwithenumproperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body |
**outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body |
### Return type
@ -453,7 +453,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **testBodyWithFileSchema**
> testBodyWithFileSchema(fileschematestclass)
> testBodyWithFileSchema(fileSchemaTestClass)
@ -464,10 +464,10 @@ For this test, the body for this request must reference a schema named `File`.
import 'package:openapi/api.dart';
final api = Openapi().getFakeApi();
final FileSchemaTestClass fileschematestclass = ; // FileSchemaTestClass |
final FileSchemaTestClass fileSchemaTestClass = ; // FileSchemaTestClass |
try {
api.testBodyWithFileSchema(fileschematestclass);
api.testBodyWithFileSchema(fileSchemaTestClass);
} catch on DioException (e) {
print('Exception when calling FakeApi->testBodyWithFileSchema: $e\n');
}
@ -477,7 +477,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**fileschematestclass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
@ -537,7 +537,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **testClientModel**
> ModelClient testClientModel(modelclient)
> ModelClient testClientModel(modelClient)
To test \"client\" model
@ -548,10 +548,10 @@ To test \"client\" model
import 'package:openapi/api.dart';
final api = Openapi().getFakeApi();
final ModelClient modelclient = ; // ModelClient | client model
final ModelClient modelClient = ; // ModelClient | client model
try {
final response = api.testClientModel(modelclient);
final response = api.testClientModel(modelClient);
print(response);
} catch on DioException (e) {
print('Exception when calling FakeApi->testClientModel: $e\n');
@ -562,7 +562,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelclient** | [**ModelClient**](ModelClient.md)| client model |
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type
@ -580,7 +580,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **testEndpointParameters**
> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback)
> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -605,12 +605,12 @@ final double float = 3.4; // double | None
final String string = string_example; // String | None
final MultipartFile binary = BINARY_DATA_HERE; // MultipartFile | None
final DateTime date = 2013-10-20; // DateTime | None
final DateTime datetime = 2013-10-20T19:20:30+01:00; // DateTime | None
final DateTime dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None
final String password = password_example; // String | None
final String callback = callback_example; // String | None
try {
api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback);
api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback);
} catch on DioException (e) {
print('Exception when calling FakeApi->testEndpointParameters: $e\n');
}
@ -631,7 +631,7 @@ Name | Type | Description | Notes
**string** | **String**| None | [optional]
**binary** | **MultipartFile**| None | [optional]
**date** | **DateTime**| None | [optional]
**datetime** | **DateTime**| None | [optional]
**dateTime** | **DateTime**| None | [optional]
**password** | **String**| None | [optional]
**callback** | **String**| None | [optional]
@ -803,7 +803,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **testInlineFreeformAdditionalProperties**
> testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest)
> testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest)
test inline free-form additionalProperties
@ -814,10 +814,10 @@ test inline free-form additionalProperties
import 'package:openapi/api.dart';
final api = Openapi().getFakeApi();
final TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body
final TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body
try {
api.testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest);
api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest);
} catch on DioException (e) {
print('Exception when calling FakeApi->testInlineFreeformAdditionalProperties: $e\n');
}
@ -827,7 +827,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**testinlinefreeformadditionalpropertiesrequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body |
**testInlineFreeformAdditionalPropertiesRequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body |
### Return type
@ -889,7 +889,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **testNullable**
> testNullable(childwithnullable)
> testNullable(childWithNullable)
test nullable parent property
@ -900,10 +900,10 @@ test nullable parent property
import 'package:openapi/api.dart';
final api = Openapi().getFakeApi();
final ChildWithNullable childwithnullable = ; // ChildWithNullable | request body
final ChildWithNullable childWithNullable = ; // ChildWithNullable | request body
try {
api.testNullable(childwithnullable);
api.testNullable(childWithNullable);
} catch on DioException (e) {
print('Exception when calling FakeApi->testNullable: $e\n');
}
@ -913,7 +913,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**childwithnullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body |
**childWithNullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body |
### Return type
@ -931,7 +931,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **testQueryParameterCollectionFormat**
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language)
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language)
@ -947,11 +947,11 @@ final List<String> ioutil = ; // List<String> |
final List<String> http = ; // List<String> |
final List<String> url = ; // List<String> |
final List<String> context = ; // List<String> |
final String allowempty = allowempty_example; // String |
final String allowEmpty = allowEmpty_example; // String |
final Map<String, String> language = ; // Map<String, String> |
try {
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language);
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language);
} catch on DioException (e) {
print('Exception when calling FakeApi->testQueryParameterCollectionFormat: $e\n');
}
@ -966,7 +966,7 @@ Name | Type | Description | Notes
**http** | [**List&lt;String&gt;**](String.md)| |
**url** | [**List&lt;String&gt;**](String.md)| |
**context** | [**List&lt;String&gt;**](String.md)| |
**allowempty** | **String**| |
**allowEmpty** | **String**| |
**language** | [**Map&lt;String, String&gt;**](String.md)| | [optional]
### Return type

View File

@ -8,8 +8,8 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**someid** | **num** | | [optional]
**somemap** | **Map&lt;String, num&gt;** | | [optional]
**someId** | **num** | | [optional]
**someMap** | **Map&lt;String, num&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -13,7 +13,7 @@ Method | HTTP request | Description
# **testClassname**
> ModelClient testClassname(modelclient)
> ModelClient testClassname(modelClient)
To test class name in snake case
@ -28,10 +28,10 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key_query').apiKeyPrefix = 'Bearer';
final api = Openapi().getFakeClassnameTags123Api();
final ModelClient modelclient = ; // ModelClient | client model
final ModelClient modelClient = ; // ModelClient | client model
try {
final response = api.testClassname(modelclient);
final response = api.testClassname(modelClient);
print(response);
} catch on DioException (e) {
print('Exception when calling FakeClassnameTags123Api->testClassname: $e\n');
@ -42,7 +42,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelclient** | [**ModelClient**](ModelClient.md)| client model |
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type

View File

@ -19,7 +19,7 @@ Name | Type | Description | Notes
**byte** | **String** | |
**binary** | [**MultipartFile**](MultipartFile.md) | | [optional]
**date** | [**DateTime**](DateTime.md) | |
**datetime** | [**DateTime**](DateTime.md) | | [optional]
**dateTime** | [**DateTime**](DateTime.md) | | [optional]
**uuid** | **String** | | [optional]
**password** | **String** | |
**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional]

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**nullablemessage** | **String** | | [optional]
**nullableMessage** | **String** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -9,7 +9,7 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**uuid** | **String** | | [optional]
**datetime** | [**DateTime**](DateTime.md) | | [optional]
**dateTime** | [**DateTime**](DateTime.md) | | [optional]
**map** | [**Map&lt;String, Animal&gt;**](Animal.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**sourceuri** | **String** | Test capitalization | [optional]
**sourceURI** | **String** | Test capitalization | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**justnumber** | **num** | | [optional]
**justNumber** | **num** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**uuid** | **String** | | [optional]
**id** | **num** | | [optional]
**deprecatedref** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
**bars** | **List&lt;String&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -9,9 +9,9 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**petid** | **int** | | [optional]
**petId** | **int** | | [optional]
**quantity** | **int** | | [optional]
**shipdate** | [**DateTime**](DateTime.md) | | [optional]
**shipDate** | [**DateTime**](DateTime.md) | | [optional]
**status** | **String** | Order Status | [optional]
**complete** | **bool** | | [optional] [default to false]

View File

@ -9,7 +9,7 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **String** | | [optional]
**nullableproperty** | **String** | | [optional]
**nullableProperty** | **String** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
**id** | **int** | | [optional]
**category** | [**Category**](Category.md) | | [optional]
**name** | **String** | |
**photourls** | **Set&lt;String&gt;** | |
**photoUrls** | **Set&lt;String&gt;** | |
**tags** | [**List&lt;Tag&gt;**](Tag.md) | | [optional]
**status** | **String** | pet status in the store | [optional]

View File

@ -65,7 +65,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **deletePet**
> deletePet(petid, apiKey)
> deletePet(petId, apiKey)
Deletes a pet
@ -78,11 +78,11 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
final api = Openapi().getPetApi();
final int petid = 789; // int | Pet id to delete
final int petId = 789; // int | Pet id to delete
final String apiKey = apiKey_example; // String |
try {
api.deletePet(petid, apiKey);
api.deletePet(petId, apiKey);
} catch on DioException (e) {
print('Exception when calling PetApi->deletePet: $e\n');
}
@ -92,7 +92,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**petid** | **int**| Pet id to delete |
**petId** | **int**| Pet id to delete |
**apiKey** | **String**| | [optional]
### Return type
@ -201,7 +201,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **getPetById**
> Pet getPetById(petid)
> Pet getPetById(petId)
Find pet by ID
@ -216,10 +216,10 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
final api = Openapi().getPetApi();
final int petid = 789; // int | ID of pet to return
final int petId = 789; // int | ID of pet to return
try {
final response = api.getPetById(petid);
final response = api.getPetById(petId);
print(response);
} catch on DioException (e) {
print('Exception when calling PetApi->getPetById: $e\n');
@ -230,7 +230,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**petid** | **int**| ID of pet to return |
**petId** | **int**| ID of pet to return |
### Return type
@ -292,7 +292,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **updatePetWithForm**
> updatePetWithForm(petid, name, status)
> updatePetWithForm(petId, name, status)
Updates a pet in the store with form data
@ -305,12 +305,12 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
final api = Openapi().getPetApi();
final int petid = 789; // int | ID of pet that needs to be updated
final int petId = 789; // int | ID of pet that needs to be updated
final String name = name_example; // String | Updated name of the pet
final String status = status_example; // String | Updated status of the pet
try {
api.updatePetWithForm(petid, name, status);
api.updatePetWithForm(petId, name, status);
} catch on DioException (e) {
print('Exception when calling PetApi->updatePetWithForm: $e\n');
}
@ -320,7 +320,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**petid** | **int**| ID of pet that needs to be updated |
**petId** | **int**| ID of pet that needs to be updated |
**name** | **String**| Updated name of the pet | [optional]
**status** | **String**| Updated status of the pet | [optional]
@ -340,7 +340,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **uploadFile**
> ApiResponse uploadFile(petid, additionalmetadata, file)
> ApiResponse uploadFile(petId, additionalMetadata, file)
uploads an image
@ -353,12 +353,12 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
final api = Openapi().getPetApi();
final int petid = 789; // int | ID of pet to update
final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server
final int petId = 789; // int | ID of pet to update
final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server
final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | file to upload
try {
final response = api.uploadFile(petid, additionalmetadata, file);
final response = api.uploadFile(petId, additionalMetadata, file);
print(response);
} catch on DioException (e) {
print('Exception when calling PetApi->uploadFile: $e\n');
@ -369,8 +369,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**petid** | **int**| ID of pet to update |
**additionalmetadata** | **String**| Additional data to pass to server | [optional]
**petId** | **int**| ID of pet to update |
**additionalMetadata** | **String**| Additional data to pass to server | [optional]
**file** | **MultipartFile**| file to upload | [optional]
### Return type
@ -389,7 +389,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **uploadFileWithRequiredFile**
> ApiResponse uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata)
> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
uploads an image (required)
@ -402,12 +402,12 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
final api = Openapi().getPetApi();
final int petid = 789; // int | ID of pet to update
final MultipartFile requiredfile = BINARY_DATA_HERE; // MultipartFile | file to upload
final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server
final int petId = 789; // int | ID of pet to update
final MultipartFile requiredFile = BINARY_DATA_HERE; // MultipartFile | file to upload
final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server
try {
final response = api.uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata);
final response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
print(response);
} catch on DioException (e) {
print('Exception when calling PetApi->uploadFileWithRequiredFile: $e\n');
@ -418,9 +418,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**petid** | **int**| ID of pet to update |
**requiredfile** | **MultipartFile**| file to upload |
**additionalmetadata** | **String**| Additional data to pass to server | [optional]
**petId** | **int**| ID of pet to update |
**requiredFile** | **MultipartFile**| file to upload |
**additionalMetadata** | **String**| Additional data to pass to server | [optional]
### Return type

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket** | **int** | | [optional]
**dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**someproperty** | **String** | | [optional]
**someProperty** | **String** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -10,12 +10,12 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**username** | **String** | | [optional]
**firstname** | **String** | | [optional]
**lastname** | **String** | | [optional]
**firstName** | **String** | | [optional]
**lastName** | **String** | | [optional]
**email** | **String** | | [optional]
**password** | **String** | | [optional]
**phone** | **String** | | [optional]
**userstatus** | **int** | User Status | [optional]
**userStatus** | **int** | User Status | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -21,7 +21,7 @@ class AnotherFakeApi {
/// To test special tags and operation ID starting with number
///
/// Parameters:
/// * [modelclient] - client model
/// * [modelClient] - client model
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -32,7 +32,7 @@ class AnotherFakeApi {
/// Returns a [Future] containing a [Response] with a [ModelClient] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<ModelClient>> call123testSpecialTags({
required ModelClient modelclient,
required ModelClient modelClient,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -57,7 +57,7 @@ class AnotherFakeApi {
dynamic _bodyData;
try {
_bodyData=jsonEncode(modelclient);
_bodyData=jsonEncode(modelClient);
} catch(error, stackTrace) {
throw DioException(
requestOptions: _options.compose(

View File

@ -340,7 +340,7 @@ _responseData = rawData == null ? null : deserialize<bool, bool>(rawData, 'bool'
/// Test serialization of object with outer number type
///
/// Parameters:
/// * [outercomposite] - Input composite as post body
/// * [outerComposite] - Input composite as post body
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -351,7 +351,7 @@ _responseData = rawData == null ? null : deserialize<bool, bool>(rawData, 'bool'
/// Returns a [Future] containing a [Response] with a [OuterComposite] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<OuterComposite>> fakeOuterCompositeSerialize({
OuterComposite? outercomposite,
OuterComposite? outerComposite,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -376,7 +376,7 @@ _responseData = rawData == null ? null : deserialize<bool, bool>(rawData, 'bool'
dynamic _bodyData;
try {
_bodyData=jsonEncode(outercomposite);
_bodyData=jsonEncode(outerComposite);
} catch(error, stackTrace) {
throw DioException(
requestOptions: _options.compose(
@ -607,7 +607,7 @@ _responseData = rawData == null ? null : deserialize<String, String>(rawData, 'S
/// Test serialization of enum (int) properties with examples
///
/// Parameters:
/// * [outerobjectwithenumproperty] - Input enum (int) as post body
/// * [outerObjectWithEnumProperty] - Input enum (int) as post body
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -618,7 +618,7 @@ _responseData = rawData == null ? null : deserialize<String, String>(rawData, 'S
/// Returns a [Future] containing a [Response] with a [OuterObjectWithEnumProperty] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<OuterObjectWithEnumProperty>> fakePropertyEnumIntegerSerialize({
required OuterObjectWithEnumProperty outerobjectwithenumproperty,
required OuterObjectWithEnumProperty outerObjectWithEnumProperty,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -643,7 +643,7 @@ _responseData = rawData == null ? null : deserialize<String, String>(rawData, 'S
dynamic _bodyData;
try {
_bodyData=jsonEncode(outerobjectwithenumproperty);
_bodyData=jsonEncode(outerObjectWithEnumProperty);
} catch(error, stackTrace) {
throw DioException(
requestOptions: _options.compose(
@ -826,7 +826,7 @@ _bodyData=jsonEncode(body);
/// For this test, the body for this request must reference a schema named &#x60;File&#x60;.
///
/// Parameters:
/// * [fileschematestclass]
/// * [fileSchemaTestClass]
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -837,7 +837,7 @@ _bodyData=jsonEncode(body);
/// Returns a [Future]
/// Throws [DioException] if API call or serialization fails
Future<Response<void>> testBodyWithFileSchema({
required FileSchemaTestClass fileschematestclass,
required FileSchemaTestClass fileSchemaTestClass,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -862,7 +862,7 @@ _bodyData=jsonEncode(body);
dynamic _bodyData;
try {
_bodyData=jsonEncode(fileschematestclass);
_bodyData=jsonEncode(fileSchemaTestClass);
} catch(error, stackTrace) {
throw DioException(
requestOptions: _options.compose(
@ -964,7 +964,7 @@ _bodyData=jsonEncode(user);
/// To test \&quot;client\&quot; model
///
/// Parameters:
/// * [modelclient] - client model
/// * [modelClient] - client model
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -975,7 +975,7 @@ _bodyData=jsonEncode(user);
/// Returns a [Future] containing a [Response] with a [ModelClient] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<ModelClient>> testClientModel({
required ModelClient modelclient,
required ModelClient modelClient,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -1000,7 +1000,7 @@ _bodyData=jsonEncode(user);
dynamic _bodyData;
try {
_bodyData=jsonEncode(modelclient);
_bodyData=jsonEncode(modelClient);
} catch(error, stackTrace) {
throw DioException(
requestOptions: _options.compose(
@ -1064,7 +1064,7 @@ _responseData = rawData == null ? null : deserialize<ModelClient, ModelClient>(r
/// * [string] - None
/// * [binary] - None
/// * [date] - None
/// * [datetime] - None
/// * [dateTime] - None
/// * [password] - None
/// * [callback] - None
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
@ -1088,7 +1088,7 @@ _responseData = rawData == null ? null : deserialize<ModelClient, ModelClient>(r
String? string,
MultipartFile? binary,
DateTime? date,
DateTime? datetime,
DateTime? dateTime,
String? password,
String? callback,
CancelToken? cancelToken,
@ -1381,7 +1381,7 @@ _bodyData=jsonEncode(requestBody);
///
///
/// Parameters:
/// * [testinlinefreeformadditionalpropertiesrequest] - request body
/// * [testInlineFreeformAdditionalPropertiesRequest] - request body
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -1392,7 +1392,7 @@ _bodyData=jsonEncode(requestBody);
/// Returns a [Future]
/// Throws [DioException] if API call or serialization fails
Future<Response<void>> testInlineFreeformAdditionalProperties({
required TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest,
required TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -1417,7 +1417,7 @@ _bodyData=jsonEncode(requestBody);
dynamic _bodyData;
try {
_bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest);
_bodyData=jsonEncode(testInlineFreeformAdditionalPropertiesRequest);
} catch(error, stackTrace) {
throw DioException(
requestOptions: _options.compose(
@ -1513,7 +1513,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest);
///
///
/// Parameters:
/// * [childwithnullable] - request body
/// * [childWithNullable] - request body
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -1524,7 +1524,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest);
/// Returns a [Future]
/// Throws [DioException] if API call or serialization fails
Future<Response<void>> testNullable({
required ChildWithNullable childwithnullable,
required ChildWithNullable childWithNullable,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -1549,7 +1549,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest);
dynamic _bodyData;
try {
_bodyData=jsonEncode(childwithnullable);
_bodyData=jsonEncode(childWithNullable);
} catch(error, stackTrace) {
throw DioException(
requestOptions: _options.compose(
@ -1583,7 +1583,7 @@ _bodyData=jsonEncode(childwithnullable);
/// * [http]
/// * [url]
/// * [context]
/// * [allowempty]
/// * [allowEmpty]
/// * [language]
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
@ -1600,7 +1600,7 @@ _bodyData=jsonEncode(childwithnullable);
required List<String> http,
required List<String> url,
required List<String> context,
required String allowempty,
required String allowEmpty,
Map<String, String>? language,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
@ -1629,7 +1629,7 @@ _bodyData=jsonEncode(childwithnullable);
r'url': url,
r'context': context,
if (language != null) r'language': language,
r'allowEmpty': allowempty,
r'allowEmpty': allowEmpty,
};
final _response = await _dio.request<Object>(

View File

@ -21,7 +21,7 @@ class FakeClassnameTags123Api {
/// To test class name in snake case
///
/// Parameters:
/// * [modelclient] - client model
/// * [modelClient] - client model
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -32,7 +32,7 @@ class FakeClassnameTags123Api {
/// Returns a [Future] containing a [Response] with a [ModelClient] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<ModelClient>> testClassname({
required ModelClient modelclient,
required ModelClient modelClient,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -64,7 +64,7 @@ class FakeClassnameTags123Api {
dynamic _bodyData;
try {
_bodyData=jsonEncode(modelclient);
_bodyData=jsonEncode(modelClient);
} catch(error, stackTrace) {
throw DioException(
requestOptions: _options.compose(

View File

@ -92,7 +92,7 @@ _bodyData=jsonEncode(pet);
///
///
/// Parameters:
/// * [petid] - Pet id to delete
/// * [petId] - Pet id to delete
/// * [apiKey]
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
@ -104,7 +104,7 @@ _bodyData=jsonEncode(pet);
/// Returns a [Future]
/// Throws [DioException] if API call or serialization fails
Future<Response<void>> deletePet({
required int petid,
required int petId,
String? apiKey,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
@ -113,7 +113,7 @@ _bodyData=jsonEncode(pet);
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress,
}) async {
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString());
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString());
final _options = Options(
method: r'DELETE',
headers: <String, dynamic>{
@ -310,7 +310,7 @@ _responseData = rawData == null ? null : deserialize<Set<Pet>, Pet>(rawData, 'Se
/// Returns a single pet
///
/// Parameters:
/// * [petid] - ID of pet to return
/// * [petId] - ID of pet to return
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -321,7 +321,7 @@ _responseData = rawData == null ? null : deserialize<Set<Pet>, Pet>(rawData, 'Se
/// Returns a [Future] containing a [Response] with a [Pet] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<Pet>> getPetById({
required int petid,
required int petId,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -329,7 +329,7 @@ _responseData = rawData == null ? null : deserialize<Set<Pet>, Pet>(rawData, 'Se
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress,
}) async {
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString());
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString());
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
@ -458,7 +458,7 @@ _bodyData=jsonEncode(pet);
///
///
/// Parameters:
/// * [petid] - ID of pet that needs to be updated
/// * [petId] - ID of pet that needs to be updated
/// * [name] - Updated name of the pet
/// * [status] - Updated status of the pet
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
@ -471,7 +471,7 @@ _bodyData=jsonEncode(pet);
/// Returns a [Future]
/// Throws [DioException] if API call or serialization fails
Future<Response<void>> updatePetWithForm({
required int petid,
required int petId,
String? name,
String? status,
CancelToken? cancelToken,
@ -481,7 +481,7 @@ _bodyData=jsonEncode(pet);
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress,
}) async {
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString());
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString());
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
@ -532,8 +532,8 @@ _bodyData=jsonEncode(pet);
///
///
/// Parameters:
/// * [petid] - ID of pet to update
/// * [additionalmetadata] - Additional data to pass to server
/// * [petId] - ID of pet to update
/// * [additionalMetadata] - Additional data to pass to server
/// * [file] - file to upload
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
@ -545,8 +545,8 @@ _bodyData=jsonEncode(pet);
/// Returns a [Future] containing a [Response] with a [ApiResponse] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<ApiResponse>> uploadFile({
required int petid,
String? additionalmetadata,
required int petId,
String? additionalMetadata,
MultipartFile? file,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
@ -555,7 +555,7 @@ _bodyData=jsonEncode(pet);
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress,
}) async {
final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', petid.toString());
final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', petId.toString());
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
@ -630,9 +630,9 @@ _responseData = rawData == null ? null : deserialize<ApiResponse, ApiResponse>(r
///
///
/// Parameters:
/// * [petid] - ID of pet to update
/// * [requiredfile] - file to upload
/// * [additionalmetadata] - Additional data to pass to server
/// * [petId] - ID of pet to update
/// * [requiredFile] - file to upload
/// * [additionalMetadata] - Additional data to pass to server
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
@ -643,9 +643,9 @@ _responseData = rawData == null ? null : deserialize<ApiResponse, ApiResponse>(r
/// Returns a [Future] containing a [Response] with a [ApiResponse] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<ApiResponse>> uploadFileWithRequiredFile({
required int petid,
required MultipartFile requiredfile,
String? additionalmetadata,
required int petId,
required MultipartFile requiredFile,
String? additionalMetadata,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
@ -653,7 +653,7 @@ _responseData = rawData == null ? null : deserialize<ApiResponse, ApiResponse>(r
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress,
}) async {
final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', petid.toString());
final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', petId.toString());
final _options = Options(
method: r'POST',
headers: <String, dynamic>{

View File

@ -21,7 +21,7 @@ class AllOfWithSingleRef {
this.username,
this.singlereftype,
this.singleRefType,
});
@JsonKey(
@ -45,7 +45,7 @@ class AllOfWithSingleRef {
)
final SingleRefType? singlereftype;
final SingleRefType? singleRefType;
@ -54,12 +54,12 @@ class AllOfWithSingleRef {
@override
bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef &&
other.username == username &&
other.singlereftype == singlereftype;
other.singleRefType == singleRefType;
@override
int get hashCode =>
username.hashCode +
singlereftype.hashCode;
singleRefType.hashCode;
factory AllOfWithSingleRef.fromJson(Map<String, dynamic> json) => _$AllOfWithSingleRefFromJson(json);

View File

@ -18,7 +18,7 @@ class Animal {
/// Returns a new [Animal] instance.
Animal({
required this.classname,
required this.className,
this.color = 'red',
});
@ -31,7 +31,7 @@ class Animal {
)
final String classname;
final String className;
@ -51,12 +51,12 @@ class Animal {
@override
bool operator ==(Object other) => identical(this, other) || other is Animal &&
other.classname == classname &&
other.className == className &&
other.color == color;
@override
int get hashCode =>
classname.hashCode +
className.hashCode +
color.hashCode;
factory Animal.fromJson(Map<String, dynamic> json) => _$AnimalFromJson(json);

View File

@ -18,7 +18,7 @@ class ArrayOfArrayOfNumberOnly {
/// Returns a new [ArrayOfArrayOfNumberOnly] instance.
ArrayOfArrayOfNumberOnly({
this.arrayarraynumber,
this.arrayArrayNumber,
});
@JsonKey(
@ -29,7 +29,7 @@ class ArrayOfArrayOfNumberOnly {
)
final List<List<num>>? arrayarraynumber;
final List<List<num>>? arrayArrayNumber;
@ -37,11 +37,11 @@ class ArrayOfArrayOfNumberOnly {
@override
bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly &&
other.arrayarraynumber == arrayarraynumber;
other.arrayArrayNumber == arrayArrayNumber;
@override
int get hashCode =>
arrayarraynumber.hashCode;
arrayArrayNumber.hashCode;
factory ArrayOfArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfArrayOfNumberOnlyFromJson(json);

View File

@ -18,7 +18,7 @@ class ArrayOfNumberOnly {
/// Returns a new [ArrayOfNumberOnly] instance.
ArrayOfNumberOnly({
this.arraynumber,
this.arrayNumber,
});
@JsonKey(
@ -29,7 +29,7 @@ class ArrayOfNumberOnly {
)
final List<num>? arraynumber;
final List<num>? arrayNumber;
@ -37,11 +37,11 @@ class ArrayOfNumberOnly {
@override
bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly &&
other.arraynumber == arraynumber;
other.arrayNumber == arrayNumber;
@override
int get hashCode =>
arraynumber.hashCode;
arrayNumber.hashCode;
factory ArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfNumberOnlyFromJson(json);

View File

@ -18,17 +18,17 @@ class Capitalization {
/// Returns a new [Capitalization] instance.
Capitalization({
this.smallcamel,
this.smallCamel,
this.capitalcamel,
this.capitalCamel,
this.smallSnake,
this.capitalSnake,
this.scaEthFlowPoints,
this.sCAETHFlowPoints,
this.attName,
this.ATT_NAME,
});
@JsonKey(
@ -39,7 +39,7 @@ class Capitalization {
)
final String? smallcamel;
final String? smallCamel;
@ -51,7 +51,7 @@ class Capitalization {
)
final String? capitalcamel;
final String? capitalCamel;
@ -87,7 +87,7 @@ class Capitalization {
)
final String? scaEthFlowPoints;
final String? sCAETHFlowPoints;
@ -100,7 +100,7 @@ class Capitalization {
)
final String? attName;
final String? ATT_NAME;
@ -108,21 +108,21 @@ class Capitalization {
@override
bool operator ==(Object other) => identical(this, other) || other is Capitalization &&
other.smallcamel == smallcamel &&
other.capitalcamel == capitalcamel &&
other.smallCamel == smallCamel &&
other.capitalCamel == capitalCamel &&
other.smallSnake == smallSnake &&
other.capitalSnake == capitalSnake &&
other.scaEthFlowPoints == scaEthFlowPoints &&
other.attName == attName;
other.sCAETHFlowPoints == sCAETHFlowPoints &&
other.ATT_NAME == ATT_NAME;
@override
int get hashCode =>
smallcamel.hashCode +
capitalcamel.hashCode +
smallCamel.hashCode +
capitalCamel.hashCode +
smallSnake.hashCode +
capitalSnake.hashCode +
scaEthFlowPoints.hashCode +
attName.hashCode;
sCAETHFlowPoints.hashCode +
ATT_NAME.hashCode;
factory Capitalization.fromJson(Map<String, dynamic> json) => _$CapitalizationFromJson(json);

View File

@ -21,7 +21,7 @@ class Cat {
/// Returns a new [Cat] instance.
Cat({
required this.classname,
required this.className,
this.color = 'red',
@ -36,7 +36,7 @@ class Cat {
)
final String classname;
final String className;
@ -68,13 +68,13 @@ class Cat {
@override
bool operator ==(Object other) => identical(this, other) || other is Cat &&
other.classname == classname &&
other.className == className &&
other.color == color &&
other.declawed == declawed;
@override
int get hashCode =>
classname.hashCode +
className.hashCode +
color.hashCode +
declawed.hashCode;

View File

@ -23,9 +23,9 @@ class ChildWithNullable {
this.type,
this.nullableproperty,
this.nullableProperty,
this.otherproperty,
this.otherProperty,
});
@JsonKey(
@ -49,7 +49,7 @@ class ChildWithNullable {
)
final String? nullableproperty;
final String? nullableProperty;
@ -61,7 +61,7 @@ class ChildWithNullable {
)
final String? otherproperty;
final String? otherProperty;
@ -70,14 +70,14 @@ class ChildWithNullable {
@override
bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable &&
other.type == type &&
other.nullableproperty == nullableproperty &&
other.otherproperty == otherproperty;
other.nullableProperty == nullableProperty &&
other.otherProperty == otherProperty;
@override
int get hashCode =>
type.hashCode +
(nullableproperty == null ? 0 : nullableproperty.hashCode) +
otherproperty.hashCode;
(nullableProperty == null ? 0 : nullableProperty.hashCode) +
otherProperty.hashCode;
factory ChildWithNullable.fromJson(Map<String, dynamic> json) => _$ChildWithNullableFromJson(json);
@ -93,7 +93,7 @@ class ChildWithNullable {
enum ChildWithNullableTypeEnum {
@JsonValue(r'ChildWithNullable')
childwithnullable(r'ChildWithNullable'),
childWithNullable(r'ChildWithNullable'),
@JsonValue(r'unknown_default_open_api')
unknownDefaultOpenApi(r'unknown_default_open_api');

View File

@ -21,7 +21,7 @@ class Dog {
/// Returns a new [Dog] instance.
Dog({
required this.classname,
required this.className,
this.color = 'red',
@ -36,7 +36,7 @@ class Dog {
)
final String classname;
final String className;
@ -68,13 +68,13 @@ class Dog {
@override
bool operator ==(Object other) => identical(this, other) || other is Dog &&
other.classname == classname &&
other.className == className &&
other.color == color &&
other.breed == breed;
@override
int get hashCode =>
classname.hashCode +
className.hashCode +
color.hashCode +
breed.hashCode;

View File

@ -30,13 +30,13 @@ class EnumTest {
this.enumNumber,
this.outerenum,
this.outerEnum,
this.outerenuminteger,
this.outerEnumInteger,
this.outerenumdefaultvalue,
this.outerEnumDefaultValue,
this.outerenumintegerdefaultvalue,
this.outerEnumIntegerDefaultValue,
});
@JsonKey(
@ -100,7 +100,7 @@ class EnumTest {
)
final OuterEnum? outerenum;
final OuterEnum? outerEnum;
@ -113,7 +113,7 @@ class EnumTest {
)
final OuterEnumInteger? outerenuminteger;
final OuterEnumInteger? outerEnumInteger;
@ -126,7 +126,7 @@ class EnumTest {
)
final OuterEnumDefaultValue? outerenumdefaultvalue;
final OuterEnumDefaultValue? outerEnumDefaultValue;
@ -139,7 +139,7 @@ class EnumTest {
)
final OuterEnumIntegerDefaultValue? outerenumintegerdefaultvalue;
final OuterEnumIntegerDefaultValue? outerEnumIntegerDefaultValue;
@ -151,10 +151,10 @@ class EnumTest {
other.enumStringRequired == enumStringRequired &&
other.enumInteger == enumInteger &&
other.enumNumber == enumNumber &&
other.outerenum == outerenum &&
other.outerenuminteger == outerenuminteger &&
other.outerenumdefaultvalue == outerenumdefaultvalue &&
other.outerenumintegerdefaultvalue == outerenumintegerdefaultvalue;
other.outerEnum == outerEnum &&
other.outerEnumInteger == outerEnumInteger &&
other.outerEnumDefaultValue == outerEnumDefaultValue &&
other.outerEnumIntegerDefaultValue == outerEnumIntegerDefaultValue;
@override
int get hashCode =>
@ -162,10 +162,10 @@ class EnumTest {
enumStringRequired.hashCode +
enumInteger.hashCode +
enumNumber.hashCode +
(outerenum == null ? 0 : outerenum.hashCode) +
outerenuminteger.hashCode +
outerenumdefaultvalue.hashCode +
outerenumintegerdefaultvalue.hashCode;
(outerEnum == null ? 0 : outerEnum.hashCode) +
outerEnumInteger.hashCode +
outerEnumDefaultValue.hashCode +
outerEnumIntegerDefaultValue.hashCode;
factory EnumTest.fromJson(Map<String, dynamic> json) => _$EnumTestFromJson(json);
@ -181,7 +181,7 @@ class EnumTest {
enum EnumTestEnumStringEnum {
@JsonValue(r'UPPER')
upper(r'UPPER'),
UPPER(r'UPPER'),
@JsonValue(r'lower')
lower(r'lower'),
@JsonValue(r'')
@ -201,7 +201,7 @@ String toString() => value;
enum EnumTestEnumStringRequiredEnum {
@JsonValue(r'UPPER')
upper(r'UPPER'),
UPPER(r'UPPER'),
@JsonValue(r'lower')
lower(r'lower'),
@JsonValue(r'')
@ -239,9 +239,9 @@ String toString() => value;
enum EnumTestEnumNumberEnum {
@JsonValue('1.1')
number1period1(''1.1''),
number1Period1(''1.1''),
@JsonValue('-1.2')
numberNegative1period2(''-1.2''),
numberNegative1Period2(''-1.2''),
@JsonValue('11184809')
unknownDefaultOpenApi(''11184809'');

View File

@ -18,9 +18,9 @@ class FakeBigDecimalMap200Response {
/// Returns a new [FakeBigDecimalMap200Response] instance.
FakeBigDecimalMap200Response({
this.someid,
this.someId,
this.somemap,
this.someMap,
});
@JsonKey(
@ -31,7 +31,7 @@ class FakeBigDecimalMap200Response {
)
final num? someid;
final num? someId;
@ -43,7 +43,7 @@ class FakeBigDecimalMap200Response {
)
final Map<String, num>? somemap;
final Map<String, num>? someMap;
@ -51,13 +51,13 @@ class FakeBigDecimalMap200Response {
@override
bool operator ==(Object other) => identical(this, other) || other is FakeBigDecimalMap200Response &&
other.someid == someid &&
other.somemap == somemap;
other.someId == someId &&
other.someMap == someMap;
@override
int get hashCode =>
someid.hashCode +
somemap.hashCode;
someId.hashCode +
someMap.hashCode;
factory FakeBigDecimalMap200Response.fromJson(Map<String, dynamic> json) => _$FakeBigDecimalMap200ResponseFromJson(json);

View File

@ -41,7 +41,7 @@ class FormatTest {
required this.date,
this.datetime,
this.dateTime,
this.uuid,
@ -197,7 +197,7 @@ class FormatTest {
)
final DateTime? datetime;
final DateTime? dateTime;
@ -266,7 +266,7 @@ class FormatTest {
other.byte == byte &&
other.binary == binary &&
other.date == date &&
other.datetime == datetime &&
other.dateTime == dateTime &&
other.uuid == uuid &&
other.password == password &&
other.patternWithDigits == patternWithDigits &&
@ -285,7 +285,7 @@ class FormatTest {
byte.hashCode +
binary.hashCode +
date.hashCode +
datetime.hashCode +
dateTime.hashCode +
uuid.hashCode +
password.hashCode +
patternWithDigits.hashCode +

View File

@ -18,7 +18,7 @@ class HealthCheckResult {
/// Returns a new [HealthCheckResult] instance.
HealthCheckResult({
this.nullablemessage,
this.nullableMessage,
});
@JsonKey(
@ -29,7 +29,7 @@ class HealthCheckResult {
)
final String? nullablemessage;
final String? nullableMessage;
@ -37,11 +37,11 @@ class HealthCheckResult {
@override
bool operator ==(Object other) => identical(this, other) || other is HealthCheckResult &&
other.nullablemessage == nullablemessage;
other.nullableMessage == nullableMessage;
@override
int get hashCode =>
(nullablemessage == null ? 0 : nullablemessage.hashCode);
(nullableMessage == null ? 0 : nullableMessage.hashCode);
factory HealthCheckResult.fromJson(Map<String, dynamic> json) => _$HealthCheckResultFromJson(json);

View File

@ -106,7 +106,7 @@ class MapTest {
enum MapTestMapOfEnumStringEnum {
@JsonValue(r'UPPER')
upper(r'UPPER'),
UPPER(r'UPPER'),
@JsonValue(r'lower')
lower(r'lower'),
@JsonValue(r'unknown_default_open_api')

View File

@ -21,7 +21,7 @@ class MixedPropertiesAndAdditionalPropertiesClass {
this.uuid,
this.datetime,
this.dateTime,
this.map,
});
@ -46,7 +46,7 @@ class MixedPropertiesAndAdditionalPropertiesClass {
)
final DateTime? datetime;
final DateTime? dateTime;
@ -67,13 +67,13 @@ class MixedPropertiesAndAdditionalPropertiesClass {
@override
bool operator ==(Object other) => identical(this, other) || other is MixedPropertiesAndAdditionalPropertiesClass &&
other.uuid == uuid &&
other.datetime == datetime &&
other.dateTime == dateTime &&
other.map == map;
@override
int get hashCode =>
uuid.hashCode +
datetime.hashCode +
dateTime.hashCode +
map.hashCode;
factory MixedPropertiesAndAdditionalPropertiesClass.fromJson(Map<String, dynamic> json) => _$MixedPropertiesAndAdditionalPropertiesClassFromJson(json);

View File

@ -12,7 +12,7 @@ enum ModelEnumClass {
@JsonValue(r'-efg')
efg(r'-efg'),
@JsonValue(r'(xyz)')
leftParenthesisXyzrightParenthesis(r'(xyz)'),
leftParenthesisXyzRightParenthesis(r'(xyz)'),
@JsonValue(r'unknown_default_open_api')
unknownDefaultOpenApi(r'unknown_default_open_api');

View File

@ -18,7 +18,7 @@ class ModelFile {
/// Returns a new [ModelFile] instance.
ModelFile({
this.sourceuri,
this.sourceURI,
});
/// Test capitalization
@ -30,7 +30,7 @@ class ModelFile {
)
final String? sourceuri;
final String? sourceURI;
@ -38,11 +38,11 @@ class ModelFile {
@override
bool operator ==(Object other) => identical(this, other) || other is ModelFile &&
other.sourceuri == sourceuri;
other.sourceURI == sourceURI;
@override
int get hashCode =>
sourceuri.hashCode;
sourceURI.hashCode;
factory ModelFile.fromJson(Map<String, dynamic> json) => _$ModelFileFromJson(json);

View File

@ -18,7 +18,7 @@ class NumberOnly {
/// Returns a new [NumberOnly] instance.
NumberOnly({
this.justnumber,
this.justNumber,
});
@JsonKey(
@ -29,7 +29,7 @@ class NumberOnly {
)
final num? justnumber;
final num? justNumber;
@ -37,11 +37,11 @@ class NumberOnly {
@override
bool operator ==(Object other) => identical(this, other) || other is NumberOnly &&
other.justnumber == justnumber;
other.justNumber == justNumber;
@override
int get hashCode =>
justnumber.hashCode;
justNumber.hashCode;
factory NumberOnly.fromJson(Map<String, dynamic> json) => _$NumberOnlyFromJson(json);

View File

@ -23,7 +23,7 @@ class ObjectWithDeprecatedFields {
this.id,
this.deprecatedref,
this.deprecatedRef,
this.bars,
});
@ -53,7 +53,7 @@ class ObjectWithDeprecatedFields {
@Deprecated('deprecatedref has been deprecated')
@Deprecated('deprecatedRef has been deprecated')
@JsonKey(
name: r'deprecatedRef',
@ -62,7 +62,7 @@ class ObjectWithDeprecatedFields {
)
final DeprecatedObject? deprecatedref;
final DeprecatedObject? deprecatedRef;
@ -85,14 +85,14 @@ class ObjectWithDeprecatedFields {
bool operator ==(Object other) => identical(this, other) || other is ObjectWithDeprecatedFields &&
other.uuid == uuid &&
other.id == id &&
other.deprecatedref == deprecatedref &&
other.deprecatedRef == deprecatedRef &&
other.bars == bars;
@override
int get hashCode =>
uuid.hashCode +
id.hashCode +
deprecatedref.hashCode +
deprecatedRef.hashCode +
bars.hashCode;
factory ObjectWithDeprecatedFields.fromJson(Map<String, dynamic> json) => _$ObjectWithDeprecatedFieldsFromJson(json);

View File

@ -20,11 +20,11 @@ class Order {
this.id,
this.petid,
this.petId,
this.quantity,
this.shipdate,
this.shipDate,
this.status,
@ -51,7 +51,7 @@ class Order {
)
final int? petid;
final int? petId;
@ -75,7 +75,7 @@ class Order {
)
final DateTime? shipdate;
final DateTime? shipDate;
@ -110,18 +110,18 @@ class Order {
@override
bool operator ==(Object other) => identical(this, other) || other is Order &&
other.id == id &&
other.petid == petid &&
other.petId == petId &&
other.quantity == quantity &&
other.shipdate == shipdate &&
other.shipDate == shipDate &&
other.status == status &&
other.complete == complete;
@override
int get hashCode =>
id.hashCode +
petid.hashCode +
petId.hashCode +
quantity.hashCode +
shipdate.hashCode +
shipDate.hashCode +
status.hashCode +
complete.hashCode;

View File

@ -20,7 +20,7 @@ class ParentWithNullable {
this.type,
this.nullableproperty,
this.nullableProperty,
});
@JsonKey(
@ -44,7 +44,7 @@ class ParentWithNullable {
)
final String? nullableproperty;
final String? nullableProperty;
@ -53,12 +53,12 @@ class ParentWithNullable {
@override
bool operator ==(Object other) => identical(this, other) || other is ParentWithNullable &&
other.type == type &&
other.nullableproperty == nullableproperty;
other.nullableProperty == nullableProperty;
@override
int get hashCode =>
type.hashCode +
(nullableproperty == null ? 0 : nullableproperty.hashCode);
(nullableProperty == null ? 0 : nullableProperty.hashCode);
factory ParentWithNullable.fromJson(Map<String, dynamic> json) => _$ParentWithNullableFromJson(json);
@ -74,7 +74,7 @@ class ParentWithNullable {
enum ParentWithNullableTypeEnum {
@JsonValue(r'ChildWithNullable')
childwithnullable(r'ChildWithNullable'),
childWithNullable(r'ChildWithNullable'),
@JsonValue(r'unknown_default_open_api')
unknownDefaultOpenApi(r'unknown_default_open_api');

View File

@ -26,7 +26,7 @@ class Pet {
required this.name,
required this.photourls,
required this.photoUrls,
this.tags,
@ -77,7 +77,7 @@ class Pet {
)
final Set<String> photourls;
final Set<String> photoUrls;
@ -114,7 +114,7 @@ class Pet {
other.id == id &&
other.category == category &&
other.name == name &&
other.photourls == photourls &&
other.photoUrls == photoUrls &&
other.tags == tags &&
other.status == status;
@ -123,7 +123,7 @@ class Pet {
id.hashCode +
category.hashCode +
name.hashCode +
photourls.hashCode +
photoUrls.hashCode +
tags.hashCode +
status.hashCode;

View File

@ -18,7 +18,7 @@ class SpecialModelName {
/// Returns a new [SpecialModelName] instance.
SpecialModelName({
this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket,
this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket,
});
@JsonKey(
@ -29,7 +29,7 @@ class SpecialModelName {
)
final int? dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket;
final int? dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket;
@ -37,11 +37,11 @@ class SpecialModelName {
@override
bool operator ==(Object other) => identical(this, other) || other is SpecialModelName &&
other.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket == dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket;
other.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket == dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket;
@override
int get hashCode =>
dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket.hashCode;
dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket.hashCode;
factory SpecialModelName.fromJson(Map<String, dynamic> json) => _$SpecialModelNameFromJson(json);

View File

@ -18,7 +18,7 @@ class TestInlineFreeformAdditionalPropertiesRequest {
/// Returns a new [TestInlineFreeformAdditionalPropertiesRequest] instance.
TestInlineFreeformAdditionalPropertiesRequest({
this.someproperty,
this.someProperty,
});
@JsonKey(
@ -29,7 +29,7 @@ class TestInlineFreeformAdditionalPropertiesRequest {
)
final String? someproperty;
final String? someProperty;
@ -37,11 +37,11 @@ class TestInlineFreeformAdditionalPropertiesRequest {
@override
bool operator ==(Object other) => identical(this, other) || other is TestInlineFreeformAdditionalPropertiesRequest &&
other.someproperty == someproperty;
other.someProperty == someProperty;
@override
int get hashCode =>
someproperty.hashCode;
someProperty.hashCode;
factory TestInlineFreeformAdditionalPropertiesRequest.fromJson(Map<String, dynamic> json) => _$TestInlineFreeformAdditionalPropertiesRequestFromJson(json);

View File

@ -22,9 +22,9 @@ class User {
this.username,
this.firstname,
this.firstName,
this.lastname,
this.lastName,
this.email,
@ -32,7 +32,7 @@ class User {
this.phone,
this.userstatus,
this.userStatus,
});
@JsonKey(
@ -67,7 +67,7 @@ class User {
)
final String? firstname;
final String? firstName;
@ -79,7 +79,7 @@ class User {
)
final String? lastname;
final String? lastName;
@ -128,7 +128,7 @@ class User {
)
final int? userstatus;
final int? userStatus;
@ -138,23 +138,23 @@ class User {
bool operator ==(Object other) => identical(this, other) || other is User &&
other.id == id &&
other.username == username &&
other.firstname == firstname &&
other.lastname == lastname &&
other.firstName == firstName &&
other.lastName == lastName &&
other.email == email &&
other.password == password &&
other.phone == phone &&
other.userstatus == userstatus;
other.userStatus == userStatus;
@override
int get hashCode =>
id.hashCode +
username.hashCode +
firstname.hashCode +
lastname.hashCode +
firstName.hashCode +
lastName.hashCode +
email.hashCode +
password.hashCode +
phone.hashCode +
userstatus.hashCode;
userStatus.hashCode;
factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);

View File

@ -48,10 +48,10 @@ import 'package:openapi/openapi.dart';
final api = Openapi().getAnotherFakeApi();
final ModelClient modelclient = ; // ModelClient | client model
final ModelClient modelClient = ; // ModelClient | client model
try {
final response = await api.call123testSpecialTags(modelclient);
final response = await api.call123testSpecialTags(modelClient);
print(response);
} catch on DioException (e) {
print("Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n");

View File

@ -9,7 +9,7 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**username** | **String** | | [optional]
**singlereftype** | [**SingleRefType**](SingleRefType.md) | | [optional]
**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**classname** | **String** | |
**className** | **String** | |
**color** | **String** | | [optional] [default to 'red']
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -13,7 +13,7 @@ Method | HTTP request | Description
# **call123testSpecialTags**
> ModelClient call123testSpecialTags(modelclient)
> ModelClient call123testSpecialTags(modelClient)
To test special tags
@ -24,10 +24,10 @@ To test special tags and operation ID starting with number
import 'package:openapi/api.dart';
final api = Openapi().getAnotherFakeApi();
final ModelClient modelclient = ; // ModelClient | client model
final ModelClient modelClient = ; // ModelClient | client model
try {
final response = api.call123testSpecialTags(modelclient);
final response = api.call123testSpecialTags(modelClient);
print(response);
} catch on DioException (e) {
print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n');
@ -38,7 +38,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelclient** | [**ModelClient**](ModelClient.md)| client model |
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**arrayarraynumber** | [**BuiltList&lt;BuiltList&lt;num&gt;&gt;**](BuiltList.md) | | [optional]
**arrayArrayNumber** | [**BuiltList&lt;BuiltList&lt;num&gt;&gt;**](BuiltList.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**arraynumber** | **BuiltList&lt;num&gt;** | | [optional]
**arrayNumber** | **BuiltList&lt;num&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,12 +8,12 @@ import 'package:openapi/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**smallcamel** | **String** | | [optional]
**capitalcamel** | **String** | | [optional]
**smallCamel** | **String** | | [optional]
**capitalCamel** | **String** | | [optional]
**smallSnake** | **String** | | [optional]
**capitalSnake** | **String** | | [optional]
**scaEthFlowPoints** | **String** | | [optional]
**attName** | **String** | Name of the pet | [optional]
**sCAETHFlowPoints** | **String** | | [optional]
**ATT_NAME** | **String** | Name of the pet | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Some files were not shown because too many files have changed in this diff Show More