Skip to content

duplicate objects with same properties why to merge or reuse ?? #448

@bhaveshtpcg

Description

@bhaveshtpcg

Steps to reproduce

When generating with parser i got multiple objects in model with same properties is there any configuration flag or something to merge or reuse already identified object ??

can i reuse only one and not have second ??

Expected results

`@Freezed()
abstract class AspectRatio with _$AspectRatio {
const factory AspectRatio({
required String type,
required String ratio,
}) = _AspectRatio;

factory AspectRatio.fromJson(Map<String, Object?> json) => _$AspectRatioFromJson(json);
}

one object across reference ?

Actual results

AspectRatio,AspectRatio2

1
`@Freezed()
abstract class AspectRatio with _$AspectRatio {
const factory AspectRatio({
required String type,
required String ratio,
}) = _AspectRatio;

factory AspectRatio.fromJson(Map<String, Object?> json) => _$AspectRatioFromJson(json);
}
`
2
@freezed()
abstract class AspectRatio2 with _$AspectRatio2 {
const factory AspectRatio2({
required String type,
required String ratio,
}) = _AspectRatio2;

factory AspectRatio2.fromJson(Map<String, Object?> json) => _$AspectRatio2FromJson(json);
}

Your OpenApi snippet

{"openapi":"3.0.3","info":{"title":"Elysia Documentation","description":"Development documentation","version":"0.0.0"},"paths":{"/app-user/oauth":{"post":{"tags":["App User"],"summary":"OAuth","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthBody"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/OAuthBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/OAuthBody"}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthResponse"}}}}},"operationId":"postApp-userOauth"}},"/app-user/signin":{"post":{"tags":["App User"],"summary":"SignIn email","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInBody"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/SignInBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/SignInBody"}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthResponse"}}}}},"operationId":"postApp-userSignin"}},"/app-user/{id}":{"get":{"tags":["App User"],"summary":"User Details","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDetailsResponse"}}}}},"operationId":"getApp-userById"}},"/app-user/usage/{id}":{"get":{"tags":["App User"],"summary":"Usage","description":"Get user usage like credits and all","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDetailsResponse"}}}}},"operationId":"getApp-userUsageById"}},"/content-asset/upload":{"post":{"tags":["Content Asset"],"summary":"Upload an asset","description":"upload a new asset in the system with metadata (json-string) which belogns to specific deisgn template design_content/video_design_content","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UploadAssetBody"}}},"required":true},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentAssetResponse"}}}}},"operationId":"postContent-assetUpload"}},"/content-asset/{id}":{"get":{"tags":["Content Asset"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentAssetResponse"}}}}},"operationId":"getContent-assetById"}},"/content-asset/list":{"get":{"tags":["Content Asset"],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse"}}}}},"operationId":"getContent-assetList"}},"/content-group/":{"post":{"tags":["Content Group"],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CreateBody"}}},"required":true},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentGroupResponse"}}}}},"operationId":"postContent-group"},"put":{"tags":["Content Group"],"summary":"Update Group","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/GroupUpdateBody"}}},"required":true},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentGroupResponse"}}}}},"operationId":"putContent-group"},"get":{"tags":["Content Group"],"parameters":[{"name":"group","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentGroupListResponse"}}}}},"operationId":"getContent-group"}},"/content-group/filters/":{"get":{"tags":["Content Group"],"parameters":[{"name":"group","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedListResponse"}}}},"500":{"description":"Response for status 500","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}},"operationId":"getContent-groupFilters"}},"/content-group/children/{id}":{"get":{"tags":["Content Group"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentGroupListResponse"}}}}},"operationId":"getContent-groupChildrenById"}},"/content-group/{id}":{"get":{"tags":["Content Group"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentGroupResponse"}}}},"404":{"description":"Response for status 404","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"500":{"description":"Response for status 500","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}},"operationId":"getContent-groupById"},"delete":{"tags":["Content Group"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}}},"operationId":"deleteContent-groupById"}},"/content-group/reorder":{"post":{"tags":["Content Group"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderBody"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ReorderBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ReorderBody"}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentGroupListResponse"}}}},"400":{"description":"Response for status 400","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}},"operationId":"postContent-groupReorder"}},"/design-content/":{"post":{"tags":["Design Content Image"],"summary":"Create a design content","description":"Create a design content bucket to futher upadte and upload files this is just a bucket to upload original documnet and thumbnail use upload files from id created with this request","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageCreateBody"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ImageCreateBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ImageCreateBody"}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignContentResponse"}}}}},"operationId":"postDesign-content"},"get":{"tags":["Design Content Image"],"summary":"List design contents (root or by group)","parameters":[{"name":"group","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignContentListResponse"}}}}},"operationId":"getDesign-content"},"put":{"tags":["Design Content Image"],"summary":"Update design content JSON","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ImageUpdateBody"}}},"required":true},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignContentResponse"}}}}},"operationId":"putDesign-content"}},"/design-content/upload-files":{"post":{"tags":["Design Content Image"],"summary":"Upload Files","description":"Upload design JSON Document,thumbnail existing design content, Accepts multipart form: design content fields, optional json documnet file , optional thumbnail file","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ImageUploadFilesBody"}}},"required":true},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignContentResponse"}}}}},"operationId":"postDesign-contentUpload-files"}},"/design-content/nested":{"post":{"tags":["Design Content Image"],"summary":"List design contents by group (includes nested sub-groups)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NestedQueryBody"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/NestedQueryBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/NestedQueryBody"}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedListResponse"}}}}},"operationId":"postDesign-contentNested"}},"/design-content/assets/{id}":{"get":{"tags":["Design Content Image"],"summary":"Get all design assets with group relation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignContentListResponse"}}}}},"operationId":"getDesign-contentAssetsById"}},"/design-content/paginated":{"get":{"tags":["Design Content Image"],"summary":"Get design contents with pagination","parameters":[{"name":"group","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedListResponse"}}}},"500":{"description":"Response for status 500","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}},"operationId":"getDesign-contentPaginated"}},"/design-content/{id}":{"get":{"tags":["Design Content Image"],"summary":"Get a design content by id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignContentResponse"}}}},"404":{"description":"Response for status 404","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}},"operationId":"getDesign-contentById"},"delete":{"tags":["Design Content Image"],"summary":"Delete a design content","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}}},"operationId":"deleteDesign-contentById"}},"/design-content/bulk-upload":{"post":{"tags":["Design Content Image"],"summary":"Bulk upload design contents","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUploadBody"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/BulkUploadBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/BulkUploadBody"}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUploadResponse"}}}}},"operationId":"postDesign-contentBulk-upload"}},"/video-design-content/":{"post":{"description":"Create a design content bucket to futher upadte and upload files this is just a bucket to upload original documnet and thumbnail use upload files from id created with this request","tags":["Design Content Video"],"summary":"Create a design content","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoCreateBody"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/VideoCreateBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/VideoCreateBody"}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoDesignContentResponse"}}}}},"operationId":"postVideo-design-content"},"get":{"description":" A set of operations can be performed for 'Video design content' or 'video templates'","tags":["Design Content Video"],"summary":"List design contents (root or by group)","parameters":[{"name":"group","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoDesignContentListResponse"}}}}},"operationId":"getVideo-design-content"},"put":{"description":" A set of operations can be performed for 'Video design content' or 'video templates'","tags":["Design Content Video"],"summary":"Update design content JSON","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/VideoUpdateBody"}}},"required":true},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoDesignContentResponse"}}}}},"operationId":"putVideo-design-content"}},"/video-design-content/upload-files":{"post":{"description":"Upload design JSON Document,thumbnail existing design content, Accepts multipart form: design content fields, optional json documnet file , optional thumbnail file","tags":["Design Content Video"],"summary":"Upload Files","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/VideoUploadFilesBody"}}},"required":true},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoDesignContentResponse"}}}}},"operationId":"postVideo-design-contentUpload-files"}},"/video-design-content/nested":{"post":{"description":" A set of operations can be performed for 'Video design content' or 'video templates'","tags":["Design Content Video"],"summary":"List design contents by group (includes nested sub-groups)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NestedQueryBody"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/NestedQueryBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/NestedQueryBody"}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedListResponse"}}}}},"operationId":"postVideo-design-contentNested"}},"/video-design-content/assets/{id}":{"get":{"description":" A set of operations can be performed for 'Video design content' or 'video templates'","tags":["Design Content Video"],"summary":"Get all design assets with group relation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/listVideoContentAssetResponse"}}}}},"operationId":"getVideo-design-contentAssetsById"}},"/video-design-content/paginated":{"get":{"description":" A set of operations can be performed for 'Video design content' or 'video templates'","tags":["Design Content Video"],"summary":"Get design contents with pagination","parameters":[{"name":"group","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedListResponse"}}}},"500":{"description":"Response for status 500","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}},"operationId":"getVideo-design-contentPaginated"}},"/video-design-content/{id}":{"get":{"description":" A set of operations can be performed for 'Video design content' or 'video templates'","tags":["Design Content Video"],"summary":"Get a design content by id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoDesignContentResponse"}}}},"404":{"description":"Response for status 404","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}},"operationId":"getVideo-design-contentById"},"delete":{"description":" A set of operations can be performed for 'Video design content' or 'video templates'","tags":["Design Content Video"],"summary":"Delete a design content","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}}},"operationId":"deleteVideo-design-contentById"}}},"components":{"schemas":{"SignInBody":{"type":"object","required":["resigterToken","otp","email","name","password","platform"],"properties":{"resigterToken":{"type":"string"},"otp":{"type":"string"},"email":{"type":"string"},"name":{"anyOf":[{"type":"null"},{"type":"string"}]},"password":{"type":"string"},"platform":{"anyOf":[{"type":"null"},{"type":"string"}]}},"$id":"#/components/schemas/SignInBody"},"UserDetails":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"$id":"#/components/schemas/UserDetails"},"OAuthBody":{"type":"object","required":["provider","code","uniqueId","accessToken","refreshToken","identityToken","platform"],"properties":{"provider":{"type":"string","enum":["google","apple","other"]},"code":{"anyOf":[{"type":"null"},{"type":"string"}]},"uniqueId":{"type":"string"},"accessToken":{"anyOf":[{"type":"null"},{"type":"string"}]},"refreshToken":{"anyOf":[{"type":"null"},{"type":"string"}]},"identityToken":{"anyOf":[{"type":"null"},{"type":"string"}]},"user":{"type":"object","properties":{"lastName":{"type":"string"},"firstName":{"type":"string"}}},"platform":{"type":"string","enum":["mobile","desktop","tablet","web"]}},"$id":"#/components/schemas/OAuthBody"},"OAuthResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"object","required":["user","token"],"properties":{"user":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"$id":"#/components/schemas/UserDetails"},"token":{"type":"string"}}},"message":{"type":"string"}},"$id":"#/components/schemas/OAuthResponse"},"UserDetailsResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"$id":"#/components/schemas/UserDetails"},"message":{"type":"string"}},"$id":"#/components/schemas/UserDetailsResponse"},"ContentAsset":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"parentId":{"type":"string"},"parentType":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/ContentAsset"},"UploadAssetBody":{"type":"object","required":["file"],"properties":{"file":{"default":"File","type":"string","extension":"image/","format":"binary"},"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"parentId":{"type":"string"},"parentType":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/UploadAssetBody"},"ContentAssetResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"parentId":{"type":"string"},"parentType":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/ContentAsset"},"message":{"type":"string"}},"$id":"#/components/schemas/ContentAssetResponse"},"ListResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"parentId":{"type":"string"},"parentType":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/ContentAsset"}},"message":{"type":"string"}},"$id":"#/components/schemas/ListResponse"},"AspectRatioObject":{"type":"object","required":["type","ratio"],"properties":{"type":{"type":"string"},"ratio":{"type":"string"}},"$id":"#/components/schemas/AspectRatioObject"},"ContentGroupOutput":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"allowedTypes":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"aspectRatio":{"type":"object","required":["type","ratio"],"properties":{"type":{"type":"string"},"ratio":{"type":"string"}}},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"isDeleted":{"type":"boolean"},"group":{"type":"object","properties":{"id":{"type":"string"}}}},"$id":"#/components/schemas/ContentGroupOutput"},"CreateBody":{"type":"object","properties":{"file":{"default":"File","type":"string","format":"binary"},"name":{"type":"string"},"description":{"type":"string"},"allowedTypes":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"aspectRatio":{"type":"object","required":["type","ratio"],"properties":{"type":{"type":"string"},"ratio":{"type":"string"}}},"group":{"type":"object","properties":{"id":{"type":"string"}}}},"$id":"#/components/schemas/CreateBody"},"GroupUpdateBody":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"file":{"default":"File","type":"string","format":"binary"},"name":{"type":"string"},"description":{"type":"string"},"allowedTypes":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"aspectRatio":{"type":"object","required":["type","ratio"],"properties":{"type":{"type":"string"},"ratio":{"type":"string"}}},"group":{"type":"object","properties":{"id":{"type":"string"}}}},"$id":"#/components/schemas/GroupUpdateBody"},"ReorderBody":{"type":"object","properties":{"groupId":{"type":"string"},"allowedTypes":{"type":"array","items":{"type":"string"}},"aspectRatio":{"type":"object","required":["type","ratio"],"properties":{"type":{"type":"string"},"ratio":{"type":"string"}}}},"$id":"#/components/schemas/ReorderBody"},"ContentGroupResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"allowedTypes":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"aspectRatio":{"type":"object","required":["type","ratio"],"properties":{"type":{"type":"string"},"ratio":{"type":"string"}}},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"isDeleted":{"type":"boolean"},"group":{"type":"object","properties":{"id":{"type":"string"}}}},"$id":"#/components/schemas/ContentGroupOutput"},"message":{"type":"string"}},"$id":"#/components/schemas/ContentGroupResponse"},"ContentGroupListResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"allowedTypes":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"aspectRatio":{"type":"object","required":["type","ratio"],"properties":{"type":{"type":"string"},"ratio":{"type":"string"}}},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"isDeleted":{"type":"boolean"},"group":{"type":"object","properties":{"id":{"type":"string"}}}},"$id":"#/components/schemas/ContentGroupOutput"}},"message":{"type":"string"}},"$id":"#/components/schemas/ContentGroupListResponse"},"PaginatedListResponse":{"type":"object","required":["success","message","data","total","page","limit","totalPages"],"properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"allowedTypes":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"aspectRatio":{"type":"object","required":["type","ratio"],"properties":{"type":{"type":"string"},"ratio":{"type":"string"}}},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"isDeleted":{"type":"boolean"},"group":{"type":"object","properties":{"id":{"type":"string"}}}},"$id":"#/components/schemas/ContentGroupOutput"}},"total":{"type":"number"},"page":{"type":"number"},"limit":{"type":"number"},"totalPages":{"type":"number"}},"$id":"#/components/schemas/PaginatedListResponse"},"CountResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"description":"Affected update count","type":"number"},"message":{"type":"string"}},"$id":"#/components/schemas/CountResponse"},"StatusResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"description":"Status","type":"boolean"},"message":{"type":"string"}},"$id":"#/components/schemas/StatusResponse"},"DesignContentOutput":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"type":"string"},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"resourcePath":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/DesignContentOutput"},"ImageCreateBody":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"groupId":{"type":"string"},"thumbnailPath":{"type":"string"},"resourcePath":{"type":"string"},"isApproved":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isProTemplate":{"type":"boolean"},"isProductDesign":{"type":"boolean"}},"$id":"#/components/schemas/ImageCreateBody"},"ImageUploadFilesBody":{"type":"object","properties":{"thumbnail":{"default":"File","type":"string","extension":"image/","format":"binary"},"document":{"default":"File","type":"string","description":"JSON design document file containting page,elements,and its components","extension":"application/json","format":"binary"},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"type":"string"},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"resourcePath":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/ImageUploadFilesBody"},"ImageUpdateBody":{"type":"object","required":["id"],"properties":{"thumbnail":{"default":"File","type":"string","extension":"image/","format":"binary"},"document":{"default":"File","type":"string","description":"JSON design document file containting page,elements,and its components","extension":"application/json","format":"binary"},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"type":"string"},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"resourcePath":{"type":"string"},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/ImageUpdateBody"},"NestedQueryBody":{"type":"object","properties":{"id":{"type":"string"},"groupId":{"type":"string"},"group":{"type":"string"},"page":{"type":"number"},"limit":{"type":"number"},"sortBy":{"type":"string"},"sortOrder":{"type":"string"}},"$id":"#/components/schemas/NestedQueryBody"},"BulkUploadItem":{"type":"object","required":["resourcePath"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"resourcePath":{"type":"string"},"groupIds":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"thumbnailPath":{"type":"string"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"isPrivate":{"type":"boolean"},"count":{"type":"number"}},"$id":"#/components/schemas/BulkUploadItem"},"BulkUploadBody":{"anyOf":[{"type":"object","required":["resourcePath"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"resourcePath":{"type":"string"},"groupIds":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"thumbnailPath":{"type":"string"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"isPrivate":{"type":"boolean"},"count":{"type":"number"}},"$id":"#/components/schemas/BulkUploadItem"},{"type":"array","items":{"type":"object","required":["resourcePath"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"resourcePath":{"type":"string"},"groupIds":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"thumbnailPath":{"type":"string"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"isPrivate":{"type":"boolean"},"count":{"type":"number"}},"$id":"#/components/schemas/BulkUploadItem"}}],"$id":"#/components/schemas/BulkUploadBody"},"DesignContentResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"type":"string"},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"resourcePath":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/DesignContentOutput"},"message":{"type":"string"}},"$id":"#/components/schemas/DesignContentResponse"},"DesignContentListResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"type":"string"},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"resourcePath":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/DesignContentOutput"}},"message":{"type":"string"}},"$id":"#/components/schemas/DesignContentListResponse"},"BulkUploadResponse":{"type":"object","required":["success","count","data"],"properties":{"success":{"type":"boolean"},"count":{"type":"number"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"type":"string"},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"resourcePath":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/DesignContentOutput"}}},"$id":"#/components/schemas/BulkUploadResponse"},"listImageContentAssetResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"parentId":{"type":"string"},"parentType":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/ContentAsset"}},"message":{"type":"string"}},"$id":"#/components/schemas/listImageContentAssetResponse"},"VideoDesignContentOutput":{"type":"object","required":["createdAt","updatedAt"],"properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"null"},{"type":"string"}]},"description":{"anyOf":[{"type":"null"},{"type":"string"}]},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"previewPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"resourcePath":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/VideoDesignContentOutput"},"VideoCreateBody":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"groupId":{"type":"string"},"thumbnailPath":{"type":"string"},"resourcePath":{"type":"string"},"isApproved":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isProTemplate":{"type":"boolean"},"isProductDesign":{"type":"boolean"}},"$id":"#/components/schemas/VideoCreateBody"},"VideoUploadFilesBody":{"type":"object","required":["createdAt","updatedAt"],"properties":{"preview":{"default":"File","type":"string","extension":"video/","format":"binary"},"thumbnail":{"default":"File","type":"string","extension":"image/","format":"binary"},"document":{"default":"File","type":"string","description":"JSON design document file containting page,elements,and its components","extension":"application/json","format":"binary"},"id":{"type":"string"},"name":{"anyOf":[{"type":"null"},{"type":"string"}]},"description":{"anyOf":[{"type":"null"},{"type":"string"}]},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"previewPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"resourcePath":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/VideoUploadFilesBody"},"VideoUpdateBody":{"type":"object","required":["id","updatedAt"],"properties":{"preview":{"default":"File","type":"string","extension":"video/","format":"binary"},"thumbnail":{"default":"File","type":"string","extension":"image/*","format":"binary"},"document":{"default":"File","type":"string","description":"JSON design document file containting page,elements,and its components","extension":"application/json","format":"binary"},"id":{"type":"string"},"name":{"anyOf":[{"type":"null"},{"type":"string"}]},"description":{"anyOf":[{"type":"null"},{"type":"string"}]},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"previewPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"resourcePath":{"type":"string"},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/VideoUpdateBody"},"VideoDesignContentResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"object","required":["createdAt","updatedAt"],"properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"null"},{"type":"string"}]},"description":{"anyOf":[{"type":"null"},{"type":"string"}]},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"previewPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"resourcePath":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/VideoDesignContentOutput"},"message":{"type":"string"}},"$id":"#/components/schemas/VideoDesignContentResponse"},"VideoDesignContentListResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","required":["createdAt","updatedAt"],"properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"null"},{"type":"string"}]},"description":{"anyOf":[{"type":"null"},{"type":"string"}]},"group":{"type":"object","properties":{"id":{"type":"string"}}},"original":{"type":"object","properties":{"id":{"type":"string"}}},"previewPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProductDesign":{"type":"boolean"},"thumbnailPath":{"anyOf":[{"type":"null"},{"type":"string"}]},"isProTemplate":{"type":"boolean"},"isPrivate":{"type":"boolean"},"isApproved":{"type":"boolean"},"isDeleted":{"type":"boolean"},"resourcePath":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/VideoDesignContentOutput"}},"message":{"type":"string"}},"$id":"#/components/schemas/VideoDesignContentListResponse"},"listVideoContentAssetResponse":{"type":"object","required":["success","data","message"],"properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"parentId":{"type":"string"},"parentType":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}},"$id":"#/components/schemas/ContentAsset"}},"message":{"type":"string"}},"$id":"#/components/schemas/listVideoContentAssetResponse"}}}}

Code sample

Code sample
[Paste your code here]

Logs

Logs
[Paste your logs here]

Dart version and used packages versions

Dart version
[Paste your output here]
Packages version
[Paste your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions