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

Swagger schema issue #142

Open
ngouy opened this issue Nov 5, 2022 · 1 comment
Open

Swagger schema issue #142

ngouy opened this issue Nov 5, 2022 · 1 comment

Comments

@ngouy
Copy link

ngouy commented Nov 5, 2022

Per the swagger file, in the definitions:

"Group": {
      "description": "A Group.",
      "type": "object",
      "properties": {
         //...
       },
      "required": [
        "app_url",
        "description",
        "archived",
        "entity_type",
        "color",
        "num_stories_started",
        "mention_name",
        "name",
        "color_key",
        "num_stories",
        "num_epics_started",
        "id",
        "display_icon",
        "member_ids",
        "story_workflow_ids",
        "workflow_ids"
      ]
    }

But then when I query the API, some "required" attributes are nil. color for example is not required, because most (to not say all) of the groups have an color_key, which I guess replaces the color

I don't know when Creating a new group, but by definition, on how open-api generator build a client on top of the swagger files, it errors out because no color is present (API returns null), but the attribute is "required"

I'ts only one issue I found. I will keep posting here if I found others

@tresni
Copy link

tresni commented Nov 28, 2022

Might want to look at #141 where I updated all this to the latest schema definitions.

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

No branches or pull requests

2 participants