swagger-core
swagger-core copied to clipboard
Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API
__Description:__ The `allowableValues` parameter not restricts enum values: ``` enum MyEnum { A, B, C } ``` ``` // groovy @Schema(allowableValues=['A' , 'B']) MyEnum field ``` __Expected behavior:__ `allowableValues` will...
In order to allow chaining with the rest of fluent methods in `Schema` (of swagger-models), there should be methods to add a type or an example that return the updated...
I'm trying to import latest version of swagger into eclipse for development ... but this fails wiith: ``` An internal error occurred during: "Importing Maven projects". class org.eclipse.jdt.internal.core.JavaNature cannot be...
I have such an interface: ``` import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_PROBLEM_JSON_VALUE; import jakarta.validation.constraints.NotBlank; import jakarta.ws.rs.DELETE; import jakarta.ws.rs.Path; import jakarta.ws.rs.PathParam; import jakarta.ws.rs.Produces; import org.springframework.http.ProblemDetail; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.DeleteMapping;...
I define multiple executions for swagger-maven-plugin-jakarta and it seems that the resourceClasses from the first execution is re-used in all following executions. All the generated outputs have the same content...
During multimodule project build each swagger-maven-plugin execution contain info from previous child module(s). `2.0.10` Parent POM: ``` io.swagger.core.v3 swagger-jaxrs2 ${swagger.version} provided jakarta.ws.rs jakarta.ws.rs-api 2.1.6 provided io.swagger.core.v3 swagger-maven-plugin ${swagger.version} resolve ${project.build.outputDirectory}...
Since we upgraded from 2.2.11 to 2.2.21, the output when using `@ArraySchema` is no longer correct. We're outputting 3.1 via `openAPI31: true`. The output in JSON misses `"type": "array"`. See...
While investigating an issue related to types and inheritance, seems like working on a `ModelConverter` is the answer. But when trying to work on that, I've found extremely hard because...
The example for `@ExternalDocumentation` [ in the wiki](https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Annotations#externaldocumentation) doesn't actually use `@ExternalDocumentation` It's only a copy/paste from the previous example from the annotation `@Hidden`
Hi, I encountered another bug related to new OpenAPI 3.1 version. When we have some object which's attribute is another object which is abstract and has at lease one implementation...