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() @JsonSerializable()
class CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable { 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) => factory CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(Map<String, dynamic> json) =>
_$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(json); _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(json);
final List<String> size; final List<String> size;
final List<String> gps;
// coverage:ignore-start // coverage:ignore-start
Map<String, dynamic> toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson(this); Map<String, dynamic> toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson(this);
// coverage:ignore-end // 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) { _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map<String, dynamic> json) {
$checkKeys( $checkKeys(
json, json,
allowedKeys: const ['size'], allowedKeys: const ['size', 'gps'],
); );
return CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable( return CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable(
size: (json['size'] as List<dynamic>).map((e) => e as String).toList(), 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) => CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable instance) =>
<String, dynamic>{ <String, dynamic>{
'size': instance.size, 'size': instance.size,
'gps': instance.gps,
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing

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

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

9
specs/core.json

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

Loading…
Cancel
Save