kommentaar icon indicating copy to clipboard operation
kommentaar copied to clipboard

Missing struct definition

Open dhontecillas opened this issue 4 years ago • 0 comments

In the latest fix, looks like we introduced a small bug. Even that now all references are correct, one of the data definitions is not generated.

Here is the diff of using the tool before and after the patch:

diff --git a/openapi_specs/projectsapigo.v2.yaml b/openapi_specs/projectsapigo.v2.yaml
index dbfd7a9..6348a0a 100644
--- a/openapi_specs/projectsapigo.v2.yaml
+++ b/openapi_specs/projectsapigo.v2.yaml
@@ -7402,7 +7402,7 @@ paths:
         200:
           description: 200 OK (application/json data)
 definitions:
-  twdataaccount.AnnouncementResponse:
+  account.AnnouncementResponse:
     title: AnnouncementResponse
     type: object
     properties:
@@ -7828,7 +7828,7 @@ definitions:
       tags:
         type: array
         items:
-          $ref: '#/definitions/twcoreTags.Tag'
+          $ref: '#/definitions/tags.Tag'
       teams:
         type: array
         items:
@@ -7912,7 +7912,7 @@ definitions:
       accounts:
         type: array
         items:
-          $ref: '#/definitions/twcoreusersbase.Account'
+          $ref: '#/definitions/usersbase.Account'
       address:
         $ref: '#/definitions/people.address'
       administrator:
@@ -7934,7 +7934,7 @@ definitions:
       createdAt:
         type: string
       currentFeatureAnnouncement:
-        $ref: '#/definitions/twdataaccount.AnnouncementResponse'
+        $ref: '#/definitions/account.AnnouncementResponse'
       defaultFilters:
         type: object
         additionalProperties:
@@ -8044,7 +8044,7 @@ definitions:
       tags:
         type: array
         items:
-          $ref: '#/definitions/twcoreTags.Tag'
+          $ref: '#/definitions/tags.Tag'
       tasks:
         type: object
       teams:
@@ -8107,7 +8107,7 @@ definitions:
         type: number
       timezone:
         type: string
-  twcoreTags.Tag:
+  tags.Tag:
     title: Tag
     type: object
     properties:
@@ -8119,49 +8119,7 @@ definitions:
         type: string
       projectId:
         type: integer
-  twdatausers.FilterResponse:
-    title: FilterResponse
-    type: object
-    properties:
-      dateCreated:
-        type: string
-      dateDeleted:
-        type: string
-      dateUpdated:
-        type: string
-      deleted:
-        type: boolean
-      description:
-        type: string
-      displayOrder:
-        type: integer
-      fulldata:
-        type: object
-      id:
-        type: integer
-      includesSort:
-        type: boolean
-      isProjectSpecific:
-        type: boolean
-      isTemporary:
-        type: boolean
-      parameters:
-        type: object
-        additionalProperties:
-          type: string
-      projectId:
-        type: integer
-      section:
-        type: string
-      shareLink:
-        type: string
-      shared:
-        type: boolean
-      title:
-        type: string
-      userId:
-        type: integer
-  twcoreusersbase.Account:
+  usersbase.Account:
     title: Account
     type: object
     properties:

dhontecillas avatar Mar 27 '21 10:03 dhontecillas