Browse Source

specs,nextcloud: Fix capabilities

pull/133/head
jld3103 2 years ago
parent
commit
e0e5193149
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 7
      packages/nextcloud/lib/src/nextcloud.openapi.dart
  2. 4
      packages/nextcloud/lib/src/nextcloud.openapi.g.dart
  3. 9
      packages/nextcloud/lib/src/nextcloud.openapi.json
  4. 9
      specs/core.json

7
packages/nextcloud/lib/src/nextcloud.openapi.dart

@ -290,13 +290,18 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce {
@JsonSerializable()
class CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable {
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable({required this.size});
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable({
required this.size,
required this.gps,
});
factory CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(Map<String, dynamic> json) =>
_$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(json);
final List<String> size;
final List<String> gps;
// coverage:ignore-start
Map<String, dynamic> toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson(this);
// coverage:ignore-end

4
packages/nextcloud/lib/src/nextcloud.openapi.g.dart

@ -135,10 +135,11 @@ CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable
_$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['size'],
allowedKeys: const ['size', 'gps'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable(
size: (json['size'] as List<dynamic>).map((e) => e as String).toList(),
gps: (json['gps'] as List<dynamic>).map((e) => e as String).toList(),
);
}
@ -146,6 +147,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvai
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable instance) =>
<String, dynamic>{
'size': instance.size,
'gps': instance.gps,
};
CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing

9
packages/nextcloud/lib/src/nextcloud.openapi.json

@ -237,7 +237,8 @@
"metadataAvailable": {
"type": "object",
"required": [
"size"
"size",
"gps"
],
"properties": {
"size": {
@ -245,6 +246,12 @@
"items": {
"type": "string"
}
},
"gps": {
"type": "array",
"items": {
"type": "string"
}
}
}
},

9
specs/core.json

@ -223,7 +223,8 @@
"metadataAvailable": {
"type": "object",
"required": [
"size"
"size",
"gps"
],
"properties": {
"size": {
@ -231,6 +232,12 @@
"items": {
"type": "string"
}
},
"gps": {
"type": "array",
"items": {
"type": "string"
}
}
}
},

Loading…
Cancel
Save