Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #9123
Closed
Open
Issue created Mar 29, 2021 by Administrator@rootContributor0 of 2 checklist items completed0/2 checklist items

[BUG][php] body name from x-codegen-request-body-name is ignored

Created by: lerminou

Bug Report Checklist

  • [x ] Have you provided a full/minimal spec to reproduce the issue?
  • [x ] Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • [x ] Have you searched for related issues/PRs?
  • [x ] What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

After a conversion from swagger 2 to OAS3, i see a new parameter in my yaml file in my operation: x-codegen-request-body-name: ListOfDefinitions

This parameter is ignored during the php compilation and I got an object named InlineObject instead

openapi-generator version

5.1.0

OpenAPI declaration file content or url
openapi: 3.0.1
info:
  title: test
  description: test
  version: 1.0.0
servers:
  - url: /
paths:
  /definitions:
    put:
      summary: test
      operationId: putTest
      requestBody:
        description: test
        content:
          application/json:
            schema:
              type: object
              properties:
                label:
                  type: string
                  description: label
        required: true
      responses:
        204:
          description: successful operation
          content: {}
      x-codegen-request-body-name: ListOfDefinitions
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Assignee
Assign to
Time tracking