Skip to content

[Bug][Manager] Illegal DefaultValue null for parameter type integer #4908

@healchow

Description

@healchow

What happened

When opening the Swagger API, there are some exceptions occur:

java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_202]
	at java.lang.Long.parseLong(Long.java:601) ~[?:1.8.0_202]
	at java.lang.Long.valueOf(Long.java:803) ~[?:1.8.0_202]
	at io.swagger.models.parameters.AbstractSerializableParameter.getExample(AbstractSerializableParameter.java:412) ~[swagger-models-1.5.20.jar:1.5.20]

What you expected to happen

No error.

How to reproduce

Startup the manager module, and open the Swagger API in the browser, you will see the exception in the log.

Environment

No response

InLong version

master

InLong Component

InLong Manager

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions