Releases: swagger-api/swagger-core
Swagger-core 2.0.6 released!
- ref #3029 - fix ref parameter resolving (#3032)
- ref #3016 - synchronized OpenApiContextLocator (#3018)
- ref #3015 - fixed schema impl resolving as primitive, add excluded custom classes (#3017)
- ref #3013 - contextId in maven and gradle plugin (#3014)
- ref #2918 - JsonView support for RequestBody (#3010)
- ref #2972 - fixes resolving multiple map properties (#3001)
- ref #2992 - add support for LocalTime and custom system and primitive types (#2993)
- ref #2977 - fix ctxId in context, fix reader usage (#2990)
- ref #2984 - fix duplicated operationId (#2988)
- Form param bean param fix (#2986)
- Assign id to OpenApiContext correctly, to enable caching of OpenApiCo… (#2978)
- Fix for Issue #2966 (#2974)
- ref #2971 - adds modelConverterClasses and objectMapperProcessorClass to config (#2973)
- Preserve order in maps accross the OAS model (#2968)
- fix ref callback deserialization (#2963)
Swagger-core 2.0.5 released!
Swagger-core 2.0.4 released!
- make ModelResolver _isOptionalType protected (#2908)
- ref #2420 - adds propertyName to annotatedType (#2909)
- make addRequiredItem protected so that it can be used in subclasses (#2911)
- ref #2915 - fix property name (#2917)
- ref #2926 - fix extensions (de)serialization (#2931)
- ref #2846 - fix SecuritySchemePair visibility (#2932)
Swagger-core 2.0.3 released!
-
Add
reffield to annotations with related support in Reader (#2839) -
refs #2848 - fix required resolving for arrayschema schema (#2867)
-
refs #2778 - also consider NotEmpty and NotBlank to resolve required (#2876)
-
refs #2833 - fixes and resolves Links requestBody (#2877)
IMPORTANT NOTE: this PR addresses #2833, by updatingrequestBodymember datatype of swagger-modelsLinkto beObjectinstead of previousRequestBody, as it correctly maps to OpenAPI definition https://github.com/OAI/OpenAPI-Specification/blob/3.0.1/versions/3.0.1.md#linkObject.
This is a breaking change, but it makes sense as the previous datatype was basically wrong and meaningless. An alternative would be deprecating requestBody, and introducing a newrequestBodyObjectserialized as JSONrequestBodyvia mixin and jackson annotations. -
NPE on Json sub type with no name defined (#2862)
-
Add
reffield to annotations with related support in Reader (#2839) -
supports primitives in oneOf, anyOf, allOf schema annotations (#2902)
Swagger-core 1.5.21 released!
Swagger-core 2.0.2 released!
Notable features
-
Updates master branch to Swagger 2.0 / OpenAPI 3.0 code; 1.5.X code has been moved from master to 1.5 branch where 1.5.X code development/maintenance will continue (#2787)
-
Allows custom typename resolving (#2121)
-
Matrix param support (#2799)
-
@NotNullsupport in parameter (#2803) -
Avoid NPE in some scenarios involving maps (#2793)
-
Full support for ArraySchema properties via annotations (#2806)
Swagger-core 1.5.20 released!
-
Updates master branch to Swagger 2.0 / OpenAPI 3.0 code; 1.5.X code has been moved from master to 1.5 branch where 1.5.X code development/maintenance will continue (#2787)
-
Add missing properties to Model (#2768)
-
Fix security scheme name/key resolving (#2767)
-
Fix missing enum in converted response schema (#2790)
-
Allows setting operation deprecated to false (#2782)
-
Fix name resolution in enums (#2707)
-
Allows custom typename resolving (#2121)
-
Fixed override issue on property
collectionFormatpart of annotation@ApiImplicitParam(#2800) -
Response example support (#2319)
Swagger-core 2.0.1 released!
Notable features
Mainly bug fix release implementing/fixing the following:
-
JDK 9/10 support in build (#2735)
-
Supports
OpenAPIExtensiondecorateOperation(#2748) -
Fix path building for resources without leading slashes (#2751)
-
Fix stackOverflowError for circuclar reference in jackson ModelResolver (#2740)
-
Fix CVE-2018-7489 - jackson version 2.9.5 (#2755)
-
Fix random build error (#2752)
-
Fix NPE in Reader with null config (#2736)
-
Improve support for #2635
-
Correctly resolve array schema annotations with ref schema items (#2763)
-
Fix security scheme name/key resolving (#2767)
Swagger-core 1.5.19 released!
Notable features
- JsonView support (#2681, #2079)
- new
ApiModelPropertyfieldaccessModewhich replacesreadOnly(deprecated) to allow setting readOnly both astrueandfalseinApiModelPropertyannotation. (#2379)
Current behaviour (without usage ofaccessMode) is left unaltered to maintain backward compatibility.
See this test for a usage example.
Bug fixes
- Fix CVE-2018-7489 - jackson version 2.9.5 (#2756)
- Improve support for #2635
- Fix newline errors for tests on Windows (#2702)
- Path in Class level removed for subresources (#2632)
- Inner properties may have XML declared (#2316)
- Relocate Parameter allowEmptyValue (#2492)
- Move xml schema property to AbstractModel (#2669)
- Avoid duplicated
operationId(#2433)
swagger-core v2.0.0 first official release!
Overview
The Swagger team is proud to announce the first official 2.0.0 release of our main java library swagger-core. This release enhances rc4 support for OpenAPI 3.0’s main features.
In order to better improve these libraries and tools, we ask that you start using them and provide us with feedback in form of issues (please use label 3.0 spec support) on the github repository. The issues are a huge help in finding what’s missing or not working properly (though note some issues are already submitted). We would also appreciate any PRs that improve existing or new tickets.
Be aware that the release notes contain the notable changes, but there may some changes that we missed in the list.
Notable Features:
- See also rc1, r2, rc3 and rc4 release notes (v2.0.0-rc1, v2.0.0-rc2, v2.0.0-rc3, v2.0.0-rc4)
- First official release with OpenAPI 3.0 support. Swagger-core now produces OpenAPI 3.0 specs only. swagger-core 2.0 version is not backward compatible with previous 1.x versions.
- Available on Maven central, and the sources are in the 2.0 branch. PRs should be submitted against the 2.0 branch.
- Brand new 2.0 wiki!
- Jackson 2.9.4 (#2655)
- JsonView support (#2079)
- internal refactor (#2593)
- Updated annotations target (#2653)
- deprecates Schema.readOnly and introduces accessMode field (#2379)
- Class level response annotations (#2685)
- rework JsonProperty, readonly/writeonly support (#2169)
- JsonIdentity support (#2704)
- Complex types support in @ExtensionProperty (#2723)
- Adds
openapi.jsonandopenapi.yamlto known locations (#2727)
Bug fixes
- Annotation inheritance from interfaces (#2644)
- @produces full support (#2646)
- Reader Correctly skips non JAX-RS methods (#2656)
- fix models osgi export packages (#2663)
- avoid duplicate operationId (#2433)
- file upload and multipart fixes (#2689)
- support ArraySchema context annotations in container type properties (#2616)
- Path in Class level removed for subresources (#2632)
- Configuration loading from servlet path (#2706)