There are some problems in using the Knife4j(swagger enhancement) interface document
I am currently learning and developing a small project. I integrated Knife4j’s enhanced interface documentation into the project, but I encountered a problem at the moment. I will explain my problem and the dependency version information of the backend program and the frontend program in the following points.
Why @ExampleObject doesn’t work in Swagger
I’m trying to add some examples to the swagger documentation. I want to do this using the @ExampleObject annotation.
How to run java file
package io.swagger.model; import io.swagger.model.Approval; import io.swagger.model.DateAndTime; import io.swagger.model.PersonAndAddress; import io.swagger.model.Workpiece; import io.swagger.model.Workplan; import java.util.ArrayList; import java.util.List; import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonCreator; I am a developer who has almost no experience with Java. I’m trying to import […]
How to use @Schema annotation to define nested response objects in swagger2.x java?
I will return the following response object SageResponseBody<List<Long>>
.
How to use @Schema annotation to define nested response objects in swagger3 java?
I will return the following response object SageResponseBody<List<Long>>
.