{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "items": {
            "type": "array",
            "items": {
                "title": "Application Template",
                "description": "Schema for a single Application Template",
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "pattern": "^[A-Fa-f\\d]{24}$"
                    },
                    "creationDate": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "lastUpdated": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "description": {
                        "type": "string",
                        "maxLength": 1024
                    },
                    "public": {
                        "type": "boolean"
                    },
                    "authorName": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "imageUrl": {
                        "type": "string",
                        "maxLength": 1024
                    },
                    "authorUrl": {
                        "type": "string",
                        "maxLength": 1024
                    },
                    "templateUrl": {
                        "type": "string",
                        "maxLength": 1024
                    },
                    "summary": {
                        "type": "object",
                        "properties": {
                            "applicationCertificateAuthorityCount": {
                                "type": "number"
                            },
                            "dashboardCount": {
                                "type": "number"
                            },
                            "deviceCount": {
                                "type": "number"
                            },
                            "deviceRecipeCount": {
                                "type": "number"
                            },
                            "dataTableCount": {
                                "type": "number"
                            },
                            "experienceGroupCount": {
                                "type": "number"
                            },
                            "experienceUserCount": {
                                "type": "number"
                            },
                            "experienceVersionCount": {
                                "type": "number"
                            },
                            "experienceViewCount": {
                                "type": "number"
                            },
                            "experienceEndpointCount": {
                                "type": "number"
                            },
                            "fileCount": {
                                "type": "number"
                            },
                            "flowCount": {
                                "type": "number"
                            },
                            "integrationCount": {
                                "type": "number"
                            },
                            "notebookCount": {
                                "type": "number"
                            },
                            "dataTableCsvSize": {
                                "type": "number"
                            },
                            "webhookCount": {
                                "type": "number"
                            }
                        }
                    }
                }
            }
        },
        "count": {
            "type": "integer"
        },
        "totalCount": {
            "type": "integer"
        },
        "perPage": {
            "type": "integer"
        },
        "page": {
            "type": "integer"
        },
        "filter": {
            "type": "string"
        },
        "filterField": {
            "type": "string"
        },
        "sortField": {
            "type": "string"
        },
        "sortDirection": {
            "type": "string",
            "enum": [
                "asc",
                "desc",
                "ASC",
                "DESC",
                ""
            ]
        }
    }
}