Skip to content

Model naming bug #17

@git146671

Description

@git146671

The generator ignores the title for the class name, for example for an object from the spec

ErrorResponse:

name: ErrorResponse

  title: HTTP ответ с ошибкой
  summary: Ответ при возникновении ошибки
  contentType: application/json
  payload:
    title: ErrorResponse
    type: object
    required:
      - error
      - message
      - severity
    properties:
      error:
        title: ErrorCode
        type: string
        description: Код ошибки
        enum:
          - VALIDATION_ERROR
          - WALLET_NOT_FOUND
          - INTERNAL_ERROR
          - RATE_LIMIT_EXCEEDED
        examples:
          - "VALIDATION_ERROR"

Instead of enum ErrorCode , an enum Error is created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions