swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

Results 365 swagger-core issues
Sort by recently updated
recently updated
newest added

I bumped into the same issue as mentioned here: https://github.com/karatelabs/karate/issues/2627 when trying to generate generate openapi specs in my Quarkus application. ``` Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Collection.iterator()" because the...

**Environment:** - swagger-core version: 2.2.27 - OAS version: OAS 3.1 **Given the Following Class Definition:** ```java class MyModel { @Schema(description = "Hello", type = "object", oneOf = { Foo.class, Bar.class...

Related to #4404 / Fixes parts of #4404 Since this changed seemed small, the issue had traction and I had a few minutes to spare, I just opened a PR...

**Background** After upgrading swagger to 3.1 we face the issue that our schema annotations which have numbers in their examples gets interpreted as integers even though the type is a...

I have: ``` public class DonationFormResponse { ... @Schema( description = "The form layout.", oneOf = { ClassicFormLayout.class, AdaptiveFormLayout.class } ) private FormLayout formLayout; ... } @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property...

I am accepting a query parameter within an object in an opaque form so that I can apply Jakarta validation constraints to it, rather than failing to create the object...

Hello! It's about additionalProperties. This https://spec.openapis.org/oas/v3.0.1.html#schema-object says Schema in 3.0 is interpreted like described in here: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-5.18 And that means that any schema not explicitly containing additionalProperties: false allows some...

Jakarta Bean Validation allows to compose constraints as described in [3.3. Constraint composition]( https://jakarta.ee/specifications/bean-validation/3.0/jakarta-bean-validation-spec-3.0.html#constraintsdefinitionimplementation-constraintcomposition). I'd like to implement basic support for this. My idea would be to add a preprocessing...

Using [Json31.pretty()](https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-core/src/main/java/io/swagger/v3/core/util/Json31.java#L38) I'm getting back properties with anyOf containing `"type": "object"` ``` "image" : { "type" : "object", "anyOf" : [ { "type" : "string" }, { "type" : "null"...