Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing struct definition #81

Open
dhontecillas opened this issue Mar 27, 2021 · 0 comments
Open

Missing struct definition #81

dhontecillas opened this issue Mar 27, 2021 · 0 comments

Comments

@dhontecillas
Copy link
Contributor

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant