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
openapi 3.1.0 Schema is missing $defs information In this file: https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-models/src/main/java/io/swagger/v3/oas/models/media/Schema.java #defs information is not included from the openapi document schema This prevents downstream users of this library from being...
Implement clone() method for OpenAPI model and children
When Jackson's [@JsonValue](https://fasterxml.github.io/jackson-annotations/javadoc/2.8/com/fasterxml/jackson/annotation/JsonValue.html) is used on an enum method, the Swagger enum list properly uses this value. However, when it is used on an interface method which is implemented by...
我想通过重写ToString方法的形式自动生成枚举描述,但是不起作用,我将@JsonValue放在ToString方法上面但是影响了入参的解析。我应该怎么自定义展示描述,自动生成的方式? `@Getter @AllArgsConstructor public enum DayTypeEnum { 自然日(0), 工作日(1), ; @EnumValue @JsonValue private final Integer key; @Override public String toString() { return "{value:'" + key + "',label:'" + name() +...
First of all, the following repository has all the code (and description as well) to reproduce this problem: https://github.com/elgleidson/swagger-problem I have the following JSON: ```json { "nonNullableField": "not null", "nullableField":...
I am investigating the use of subclasses in responses of REST operations, but don't get it to work as I expected. I came across the issue #2340, which has been...
Hello, I want to generate the specification `openapi.yaml` for the following Java Class hierarchy: `A extends B extends C extends D` ----------------------`C1 extends D` ----------------------`C2 extends D` `@Schema(allOf = B.class)`...
When a generic class is annotated with `@Schema` having a non-null `name`, the `TypeNameResolver` does not get called, resulting in every instance of this class having the same name (as...
I have a bunch of JAX-RS 2.0 interfaces that define my API. I'm using Swagger 2.0 annotations to produce an OpenAPI 3.0 spec. Many of the operations in the API...