-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URI as a schema implementation is resolving to null #3015
Comments
refs #3015 - fixed schema impl resolving as primitive, add excluded custom classes
Thanks for reporting this; #3017 (available in latest 2.0.6-SNAPSHOT on sonatype) fixes it by correctly resolving to string schema with In 2.0.5 version you can instead workaround that by providing the schema your self: @Operation(responses = {
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(type = "string", format = "uri"))),
@ApiResponse(responseCode = "400", description = "Bad Request"),
@ApiResponse(responseCode = "500", description = "Internal Server Error")
}) Closing ticket, please reopen if still experiencing issues |
When using annotations on our resource method the following Operation annotation will produce a null schema:
I believe that "java.net.URI.class" is dealt with explicitly by "io.swagger.v3.core.util.PrimitiveType" and we are having similar issues with other classes mentioned there including "java.net.URL" and "java.util.UUID".
The text was updated successfully, but these errors were encountered: