Thanks to visit codestin.com
Credit goes to github.com

Skip to content

make gen generates inconsistent openai.json #85

@35C4n0r

Description

@35C4n0r

Description

make gen is not consistently generating openapi.json, on some runs there would be no changes, but sometimes we may encounter changes like:

diff --git a/openapi.json b/openapi.json
index 9d26def..7b6eb44 100644
--- a/openapi.json
+++ b/openapi.json
@@ -326,10 +326,10 @@
                       {
                         "properties": {
                           "data": {
-                            "$ref": "#/components/schemas/MessageUpdateBody"
+                            "$ref": "#/components/schemas/StatusChangeBody"
                           },
                           "event": {
-                            "const": "message_update",
+                            "const": "status_change",
                             "description": "The event name.",
                             "type": "string"
                           },
@@ -346,16 +346,16 @@
                           "data",
                           "event"
                         ],
-                        "title": "Event message_update",
+                        "title": "Event status_change",
                         "type": "object"
                       },
                       {
                         "properties": {
                           "data": {
-                            "$ref": "#/components/schemas/StatusChangeBody"
+                            "$ref": "#/components/schemas/MessageUpdateBody"
                           },
                           "event": {
-                            "const": "status_change",
+                            "const": "message_update",
                             "description": "The event name.",
                             "type": "string"
                           },
@@ -372,7 +372,7 @@
                           "data",
                           "event"
                         ],
-                        "title": "Event status_change",
+                        "title": "Event message_update",
                         "type": "object"
                       }
                     ]

This leads to go lint action failing.

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