Skip to content
GitLab
    • Explore Projects Groups Snippets
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
  • #10725
Something went wrong while setting issue due date.
Closed
Open
Issue created 3 years ago by Administrator@rootContributor4 of 6 checklist items completed4/6 checklist items
  • New related issue

  • Report abuse to administrator

  • New related issue

  • Report abuse to administrator

[BUG] [Core] ByteArray is marked as String at the same time

Closed

[BUG] [Core] ByteArray is marked as String at the same time

Created by: ityuhui

Bug Report Checklist

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

Hi @wing328

I think some recent change of openapi-generator core breaks a behavior:

e.g.

        "data": {
          "additionalProperties": {
            "format": "byte",
            "type": "string"
          },

At before (on September 16, 2021), the data will be marked as "isString" : false, "isByteArray" : true, but today I found it will be marked as "isString" : true, "isByteArray" : true,

Could you please give me some suggestions/clues about this problem ? Thanks.

Involve @zhemant

openapi-generator version

master

OpenAPI declaration file content or url
Generation Details
java -DdebugModels -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i /path/swagger.json  -g c    -o ../output --skip-validate-spec > log.txt
Steps to reproduce
Related issues/PRs

https://github.com/OpenAPITools/openapi-generator/pull/10034

Suggest a fix
An error occurred while loading designs. Please try again.
Tasks
0
server returned results with length 5, expected length of 9

Linked items
0

Link issues together to show that they're related. Learn more.

Activity


Please register or sign in to reply
0 Assignees
None
Assign to
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
Due date
None
None
None
Time tracking
No estimate or time spent
Confidentiality
Not confidential
Not confidential

You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

Lock issue
Unlocked
0
0 participants
Reference:

Menu

Explore Projects Groups Snippets