Skip to content

[JavaSpring] Should use requiredMode instead of deprecated required attribute of Schema class #1402

Description

@radarsh

Description

When using spring in the recent versions of swagger-codegen-generators, we get a lot of deprecation warnings about the required attribute of the Schema class being deprecated.

/path/to/project/build/generated/sources/swagger/java/main/com/example/api/model/Info.java:57: warning: [deprecation] required() in Schema has been deprecated
  @Schema(required = true, description = "Name")

Version

1.0.60

Can you identify when the issue first appeared?

Not yet, but I'll get back to you

Language / Generator Affected

Spring (and possibly other Java based generators too)

Additional Context

Checklist

  • I have searched the existing issues to avoid duplicates.
  • I have included a minimal reproducible spec or configuration.
  • I have clearly described the steps to reproduce the issue.
  • I have specified which generator or template is affected.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions