From 284907a9f435e4f85c3cd21af1c7ee71ab3a3fca Mon Sep 17 00:00:00 2001 From: Felipe Crochik Date: Thu, 5 Jun 2025 15:12:38 -0400 Subject: [PATCH 1/2] tweaks --- openapi.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 030c0ff..11a1869 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -3377,6 +3377,7 @@ components: $ref: "#/components/schemas/ProjectContactResponse" notepad: type: string + nullable: true description: "Notes or description of the project" example: "Be sure to let the client know when the work is finished" created_at: @@ -3431,10 +3432,7 @@ components: ] example: "processed" coordinates: - type: array - description: "The coordinates where the Photo was captured" - items: - $ref: "#/components/schemas/Coordinate" + $ref: "#/components/schemas/Coordinate" uris: type: array description: "A list of URIs for the different size variants of the photo." @@ -3451,6 +3449,7 @@ components: type: string description: "The MD5 hash of the photo" example: "00ab337b7399151e5d4aa3bd4226e8dd" + nullable: true description: type: string description: "A description of the photo" @@ -3461,6 +3460,7 @@ components: example: false photo_url: type: string + format: uri description: "The link to the photo in the web app" example: "https://app.companycam.com/photos/8675309" captured_at: @@ -3602,8 +3602,10 @@ components: type: string uri: type: string + format: uri url: type: string + format: uri example: type: "original" uri: "https://static.companycam.com/VuS0rPvrnNA1490797262.jpg" @@ -3888,10 +3890,10 @@ components: type: object required: - type - - relation_id properties: type: type: string + nullable: true example: "JobNimbus" relation_id: type: string @@ -3997,6 +3999,7 @@ components: example: 1621857746 ProjectContactResponse: type: object + nullable: true properties: id: type: string @@ -4012,10 +4015,12 @@ components: example: "Joe Smith" email: type: string + nullable: true description: "The email of the contact" example: "joe.smith@companycam.com" phone_number: type: string + nullable: true description: "The phone of the contact" example: "402-555-1212" created_at: @@ -4047,10 +4052,12 @@ components: example: "Joe Smith" email: type: string + nullable: true description: "The email of the contact" example: "joe.smith@companycam.com" phone_number: type: string + nullable: true description: "The phone of the contact" example: "402-555-1212" ProjectNotepad: From 607cbd0cccc2ed3e6284918f1e21e9be9f2f96c3 Mon Sep 17 00:00:00 2001 From: Felipe Crochik Date: Thu, 5 Jun 2025 15:22:42 -0400 Subject: [PATCH 2/2] annotated wrong property --- openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 11a1869..d7cc9cd 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -3893,10 +3893,10 @@ components: properties: type: type: string - nullable: true example: "JobNimbus" relation_id: type: string + nullable: true example: "123" Comment: type: object