Skip to content

Missing names sanitization cause conflicts #3400

Closed

Description

Description

If the specification contains an endpoint called models ( most notably OpenAI ).

Apparently, there are issues with things getting not generated or overwritten ...

Repro

A minimal repro looks like:

openapi: 3.0.0
info:
  title: Test
  version: 1.0.0
  description: something
paths:
  /api/something/v1:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/Test1"
      responses:
        "200":
          description: "something"
          content:
            application/json: {}
  /models:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/Test2"
      responses:
        "200":
          description: "something"
          content:
            application/json: {}
components:
  schemas:
    Test1:
      description: this is a first test
      properties:
        test:
          description:
          type: string
      type: object
    Test2:
      description: this is a second test
      properties:
        test:
          description:
          type: integer
      type: object

Resolution

I'm not sure what would need to be escaped properly. Let me know if you need a further narrowing down of the issue.

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

Metadata

Assignees

Labels

WIPgeneratorIssues or improvements relater to generation capabilities.type:bugA broken experience

Type

No type

Projects

  • Status

    Done ✔️

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions