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

**Describe the bug** When I have a field of type Iterable of an enum, e.g. a `Set` or a `Seq`, then `springdoc` is not generating the correct OpenAPI specification. **To...

Bumps [org.codehaus.mojo:build-helper-maven-plugin](https://github.com/mojohaus/build-helper-maven-plugin) from 3.0.0 to 3.6.0. Release notes Sourced from org.codehaus.mojo:build-helper-maven-plugin's releases. 3.6.0 Changes 🚀 New features and improvements Deprecate remove-project-artifact goal (#205) @​slawekjaranowski Parallel execution of uptodate-properties (#201) @​mkarg...

dependencies

https://github.com/swagger-api/swagger-core/blob/5a92e3a6b8e8218aa3243bc443e91c8a27af4401/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java#L307 The name of the model is resolved already in previous lines of code, but not set into the StringSchema in case of type enum.

Given the following endpoint and response classes: ``` @Path("/test_polymorphic") @Tag(name = "/test_polymorphic") public interface PolymorphicEntityEndpoints { @GET @Path("/{id}") @Operation(summary = "Get the entity by id") EntityResponse get( @Parameter(description = "The...

If you configure the `swagger-maven-plugin` as follows: ``` io.swagger.core.v3 swagger-maven-plugin-jakarta true ... ``` Then the generated `openapi.yaml` will contain the following due to https://github.com/swagger-api/swagger-core/blob/v2.2.22/modules/swagger-core/src/main/java/io/swagger/v3/core/util/OpenAPI30To31.java#L13: ``` jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema ``` Unfortunately this...

For all swagger files which have type mentioned as object and items is also present under the schema, the requests like these are being read as array which is wrong....

I'm currently using Jackson's `@JsonView` annotation to include/exclude class properties based on the API operation that is being performed (e.g., create, update, read, etc.). I have a specific need where...

Currently, the `ModelConverterContext` is instantiated statically from within the `ModelConverters` class. The context happens to contain some logic that seems to be hard (or impossible) to modify in any other...

It has been already mentioned [here](https://github.com/swagger-api/swagger-core/issues/4103#issuecomment-1699626911). And indeed I've encountered same problem and can confirm that `AnnotatedType` coming to the `ModelResolver.resolve()` method is returning null for a `type`.

According to the official documentation, the current Swagger API standards only support authentication, not authorization. For example, with [API-Key authentication](https://swagger.io/docs/specification/authentication/api-keys/), we can define authentication policy with API-Key at the API...