Confluence API V2 Spec Is Invalid

Since Confluence doesn’t provide clients for any APIs, I am using openapi-typescript-codegen to generate my own client based on the available OpenAPI spec here. The issue is that the generated client fails to build because of inconsistencies a couple LabelService methods.

Examples:

  1. getSpaceLabels
  2. getSpaceContentLabels

These methods only accept values “my” and “team”, but the default value is “my, team”, which is invalid based on the schema’s enum specifier.

Is this a known issue? Is there a workaround for this?

1 Like

Hi, I’ve had some problems with the open api specification, what I’ve ended up doing is patching the specification directly to make it fit reality. It’s not much, but it’s better than nothing.
I don’t know (and I haven’t checked) if there is a specific channel where we can talk about these issues.