Skip to content

Missing struct definition #81

@dhontecillas

Description

@dhontecillas

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions