Skip to content

openapi generator messes up upload paths. #25591

@Bellian

Description

@Bellian

Node Version

22.20.0

NPM/Yarn/PNPM Version

10.9.3

Strapi Version

develop branch

Operating System

Linux (Debian/Ubuntu)

Database

SQLite

Javascript or Typescript

Typescript

Reproduction URL

No response

Bug Description

strapi openapi generate does not extract the right upload url's:

{
  "openapi": "3.1.0",
  "x-powered-by": "strapi",
  "x-strapi-version": "5.37.1",
  "info": {
    "title": "kitchensink-ts",
    "description": "API documentation for kitchensink-ts v0.0.0",
    "version": "0.0.0"
  },
  "paths": {
    [...]
    "/": {  <=============== This is wrong.
       [...]
    },

The path is missing the /upload part..
This happens to all upload urls.

Steps to Reproduce

  • open the kitchensing example
  • generate openapi specs
  • wonder

Expected Behavior

The paths are generated correctly.

Logs

Code Snippets

No response

Media

No response

Additional information

No response

Confirmation Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions