chore(server): auto sort open api spec (#3500)

* chore: recursively sort api keys

* chore: open api
This commit is contained in:
Jason Rasmussen
2023-08-01 12:49:18 -04:00
committed by GitHub
parent 690b87e375
commit 310fab526d
190 changed files with 6172 additions and 6168 deletions

View File

@@ -13,32 +13,32 @@ part of openapi.api;
class APIKeyCreateResponseDto {
/// Returns a new [APIKeyCreateResponseDto] instance.
APIKeyCreateResponseDto({
required this.secret,
required this.apiKey,
required this.secret,
});
String secret;
APIKeyResponseDto apiKey;
String secret;
@override
bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateResponseDto &&
other.secret == secret &&
other.apiKey == apiKey;
other.apiKey == apiKey &&
other.secret == secret;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(secret.hashCode) +
(apiKey.hashCode);
(apiKey.hashCode) +
(secret.hashCode);
@override
String toString() => 'APIKeyCreateResponseDto[secret=$secret, apiKey=$apiKey]';
String toString() => 'APIKeyCreateResponseDto[apiKey=$apiKey, secret=$secret]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'secret'] = this.secret;
json[r'apiKey'] = this.apiKey;
json[r'secret'] = this.secret;
return json;
}
@@ -50,8 +50,8 @@ class APIKeyCreateResponseDto {
final json = value.cast<String, dynamic>();
return APIKeyCreateResponseDto(
secret: mapValueOfType<String>(json, r'secret')!,
apiKey: APIKeyResponseDto.fromJson(json[r'apiKey'])!,
secret: mapValueOfType<String>(json, r'secret')!,
);
}
return null;
@@ -99,8 +99,8 @@ class APIKeyCreateResponseDto {
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
'secret',
'apiKey',
'secret',
};
}