Skip to content

Scheduling infrastructure for absolutely everyone.

Event type swagger update for location type (#252)

Syed Ali Shahbaz386ad87e641b
diff --git a/pages/api/event-types/[id]/_patch.ts b/pages/api/event-types/[id]/_patch.ts
index d44908b2b1f..83bdf156ad7 100644
--- a/pages/api/event-types/[id]/_patch.ts
+++ b/pages/api/event-types/[id]/_patch.ts
@@ -147,7 +147,37 @@ import checkTeamEventEditPermission from "../_utils/checkTeamEventEditPermission
* type: array
* description: A list of all available locations for the event type
* items:
- * type: object
+ * type: array
+ * items:
+ * oneOf:
+ * - type: object
+ * properties:
+ * type:
+ * type: string
+ * enum: ['integrations:daily']
+ * - type: object
+ * properties:
+ * type:
+ * type: string
+ * enum: ['attendeeInPerson']
+ * - type: object
+ * properties:
+ * type:
+ * type: string
+ * enum: ['inPerson']
+ * address:
+ * type: string
+ * displayLocationPublicly:
+ * type: boolean
+ * - type: object
+ * properties:
+ * type:
+ * type: string
+ * enum: ['link']
+ * link:
+ * type: string
+ * displayLocationPublicly:
+ * type: boolean
* example:
* event-type:
* summary: An example of event type PATCH request
diff --git a/pages/api/event-types/_post.ts b/pages/api/event-types/_post.ts
index 687f4f220ca..488a15e6b9e 100644
--- a/pages/api/event-types/_post.ts
+++ b/pages/api/event-types/_post.ts
@@ -137,7 +137,37 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts";
* type: array
* description: A list of all available locations for the event type
* items:
- * type: object
+ * type: array
+ * items:
+ * oneOf:
+ * - type: object
+ * properties:
+ * type:
+ * type: string
+ * enum: ['integrations:daily']
+ * - type: object
+ * properties:
+ * type:
+ * type: string
+ * enum: ['attendeeInPerson']
+ * - type: object
+ * properties:
+ * type:
+ * type: string
+ * enum: ['inPerson']
+ * address:
+ * type: string
+ * displayLocationPublicly:
+ * type: boolean
+ * - type: object
+ * properties:
+ * type:
+ * type: string
+ * enum: ['link']
+ * link:
+ * type: string
+ * displayLocationPublicly:
+ * type: boolean
* example:
* event-type:
* summary: An example of event type POST request