Skip to content

Commit

Permalink
Revert "chore(ZMS-3235): Fixed some schema tests"
Browse files Browse the repository at this point in the history
This reverts commit d50a84b.
  • Loading branch information
Fabinatix97 committed Feb 5, 2025
1 parent 2682444 commit 73132d3
Show file tree
Hide file tree
Showing 90 changed files with 553 additions and 553 deletions.
2 changes: 1 addition & 1 deletion zmsentities/schema/apiclient.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "An apiclient is required on requesting an apikey.",
"example": {
"clientKey": "wMdVa5Nu1seuCRSJxhKl2M3yw8zqaAilPH2Xc2IZs",
Expand Down
6 changes: 3 additions & 3 deletions zmsentities/schema/apikey.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "Representation of an Apikey. It usually stores temporary api quota data while appointment scheduling in service app",
"example": {
"key": "wMdVa5Nu1seuCRSJxhKl2M3yw8zqaAilPH2Xc2IZs",
Expand Down Expand Up @@ -39,9 +39,9 @@
"$ref": "mimepart.json"
},
"quota": {
"type": ["array", "object"],
"type": "array",
"items": {
"type": ["array", "object"],
"type": "object",
"properties": {
"route": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/appointment.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "An appointment represents a given time on a scope for defining appointments in a calendar.",
"example": {
"date": 1447869172,
Expand Down
12 changes: 6 additions & 6 deletions zmsentities/schema/availability.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "An Availability is a representation of opening hours for a scope. It defines the time a scope offers appointments and a ticket printer is able to serve process numbers.",
"example": {
"bookable": {
Expand Down Expand Up @@ -40,7 +40,7 @@
"additionalProperties": false,
"properties": {
"bookable": {
"type": ["array", "object"],
"type": "object",
"properties": {
"startInDays": {
"type": ["string", "number", "null"],
Expand Down Expand Up @@ -84,14 +84,14 @@
"description": "an appointment is allowed to take more than one time slot"
},
"processingNote": {
"type": ["array", "object"],
"type": "array",
"items": {
"type": "string",
"description": "Non persistent note usable for processing or logging calculation results, usually used for debugging"
}
},
"repeat": {
"type": ["array", "object"],
"type": "object",
"properties": {
"afterWeeks": {
"type": "number",
Expand Down Expand Up @@ -129,7 +129,7 @@
"description": "The following type are available\n* appointment - defines times for appointments\n* openinghours - defines times where a scope is opened\n* break - defines times for a break (not implemented yet)\n"
},
"weekday": {
"type": ["array", "object"],
"type": "object",
"properties": {
"monday": {
"default": false,
Expand Down Expand Up @@ -183,7 +183,7 @@
}
},
"workstationCount": {
"type": ["array", "object"],
"type": "object",
"properties": {
"callcenter": {
"type": "number",
Expand Down
14 changes: 7 additions & 7 deletions zmsentities/schema/calendar.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "Represents a calendar showing free days for appointments using a list of clusters, providers and scopes. Usually the list of clusters, providers are converted to a list of scopes. If all these lists are empty, the list of scopes is generated by available scopes for the given requests.",
"example": {
"days": [
Expand Down Expand Up @@ -99,13 +99,13 @@
"description": "unix timestamp of a day representing the end of the bookable time. Paging after thise date should reveal no new appointments."
},
"clusters": {
"type": ["array", "object"],
"type": "array",
"items": {
"$ref": "cluster.json"
}
},
"days": {
"type": ["array", "object"],
"type": "array",
"description": "list of days containing appointments",
"items": {
"$ref": "day.json"
Expand All @@ -118,25 +118,25 @@
"$ref": "day.json"
},
"providers": {
"type": ["array", "object"],
"type": "array",
"items": {
"$ref": "provider.json"
}
},
"requests": {
"type": ["array", "object"],
"type": "array",
"items": {
"$ref": "request.json"
}
},
"freeProcesses": {
"type": ["array", "object"],
"type": "array",
"items": {
"$ref": "process.json"
}
},
"scopes": {
"type": ["array", "object"],
"type": "array",
"items": {
"$ref": "scope.json"
}
Expand Down
8 changes: 4 additions & 4 deletions zmsentities/schema/calldisplay.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "A calldisplay is a device to call people in a waiting room to a workstation. Usually it is a display on wall showing process ids together with a room number.\nThe clusters are resolved to fill the list of scopes. The text displayed on the calldisplay depends on the given scopes. If only one scope is present, a text can be displayed on the display. On multiple scopes, no text and no image is displayed.",
"example": {
"scopes": [
Expand All @@ -21,7 +21,7 @@
"additionalProperties": false,
"properties": {
"image": {
"type": ["array", "object"],
"type": "object",
"description": "A symbolic image for the scope",
"properties": {
"data": {
Expand All @@ -43,13 +43,13 @@
"description": "unix timestamp of the server time to adjust the clock on the call display"
},
"clusters": {
"type": ["array", "object"],
"type": "array",
"items": {
"$ref": "cluster.json"
}
},
"scopes": {
"type": ["array", "object"],
"type": "array",
"items": {
"$ref": "scope.json"
}
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/citizenapi/appointmentCancel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "Includes a message indicating the result of a canceled appointment request.",
"properties": {
"message": {
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/citizenapi/appointmentConfirm.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "Contains a message confirming the successful confirmation of an appointment.",
"properties": {
"message": {
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/citizenapi/appointmentPreconfirm.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "Provides a message indicating the successful pre-confirmation of an appointment.",
"properties": {
"message": {
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/citizenapi/appointmentReserve.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "Includes a message confirming that an appointment has been successfully reserved.",
"properties": {
"message": {
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/citizenapi/appointmentUpdate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "Provides a message indicating the result of an appointment update operation.",
"properties": {
"message": {
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/citizenapi/collections/officeList.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": ["array", "object", "null"],
"properties": {
"offices": {
"type": ["array", "object"],
"type": "array",
"items": {
"title": "Office",
"type": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "Contains information about offices, services, and their relations. Includes details about each office, available services, and how they are related.",
"properties": {
"offices": {
"type": ["array", "object"],
"type": "array",
"items": {
"title": "Office",
"type": [
Expand Down Expand Up @@ -110,7 +110,7 @@
}
},
"services": {
"type": ["array", "object"],
"type": "array",
"items": {
"type": [
"array",
Expand All @@ -119,7 +119,7 @@
],
"properties": {
"services": {
"type": ["array", "object"],
"type": "array",
"items": {
"title": "Service",
"type": [
Expand Down Expand Up @@ -190,7 +190,7 @@
}
},
"relations": {
"type": ["array", "object"],
"type": "array",
"items": {
"title": "OfficeServiceRelation",
"type": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": ["array", "object", "null"],
"properties": {
"relations": {
"type": ["array", "object"],
"type": "array",
"items": {
"title": "OfficeServiceRelation",
"type": ["array", "object", "null"],
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/citizenapi/collections/serviceList.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": ["array", "object", "null"],
"properties": {
"services": {
"type": ["array", "object"],
"type": "array",
"items": {
"title": "Service",
"type": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"type": ["array", "object", "null"],
"properties": {
"scopes": {
"type": ["array", "object"],
"type": "array",
"items": {
"type": ["array", "object"],
"type": "object",
"properties": {
"id": {
"type": "number"
},
"provider": {
"type": ["array", "object"],
"type": "object",
"properties": {
"id": {
"type": "number"
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/citizenapi/office.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Office",
"type": ["array", "object"],,
"type": ["array", "object"],
"properties": {
"id": {
"type": "integer",
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/citizenapi/processFreeSlots.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "ProcessFreeSlots",
"description": "Defines a list of free appointment timestamps returned by processFreeSlots method.",
"type": ["array", "object"],,
"type": ["array", "object"],
"properties": {
"appointmentTimestamps": {
"type": ["array", "null"],
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/client.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "A client is usually a customer in a scope who intends to get his request solved. Usually the client has an appointment, if not he got a process number from a ticket printer and his familyName is set to 'Spontankunde'.",
"example": {
"familyName": "Max Mustermann",
Expand Down
4 changes: 2 additions & 2 deletions zmsentities/schema/cluster.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "A cluster is a way to group different scopes.",
"example": {
"callDisplayText": "Herzlich Willkommen,\nDie aufgerufenen Plätze finden Sie den im Gang rechts.",
Expand Down Expand Up @@ -35,7 +35,7 @@
"description": "name for internal usage"
},
"scopes": {
"type": ["array", "object"],
"type": "array",
"items": {
"$ref": "scope.json"
}
Expand Down
4 changes: 2 additions & 2 deletions zmsentities/schema/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "main config data",
"example": {
"appointments": {
Expand All @@ -20,7 +20,7 @@
}
},
"emergency": {
"type": ["array", "object"],
"type": "object",
"description": "Depending on scope settings, a workstation might have an emergency-button to call for help",
"properties": {
"refreshInterval": {
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/contact.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"description": "A contact is a collection of contact informations to find or to contact a natural person or an entity.",
"type": ["array", "object"],
"type": "object",
"example": {
"city": "Schönefeld",
"country": "Germany",
Expand Down
4 changes: 2 additions & 2 deletions zmsentities/schema/day.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "Representation of a day in the calendar. You might find curious values in freeAppointments. While callcenter and public values might be positive, the intern value can be negative. This is due to calculation. The public and callcenter values are calculated per slot whereas the intern value is calculated for the whole day/all summed scopes. If the intern value is lower 0 and beyond, some slots might be booked with more clients than available. This might be due to changes in the availability settings.",
"example": {
"year": 2015,
Expand Down Expand Up @@ -56,7 +56,7 @@
"$ref": "slot.json"
},
"processList": {
"type": ["array", "object"],
"type": "array",
"description": "list of processes, only available if status is detail",
"items": {
"$ref": "process.json"
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/schema/dayoff.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": ["array", "object"],
"type": "object",
"description": "A dayoff is a free day where a department and its scopes are closed. Beware, if an availability is valid only for one day, it overrules a dayoff, so you can administrate exceptions on a particular scope.",
"example": {
"id" : 1234,
Expand Down
Loading

0 comments on commit 73132d3

Please sign in to comment.