Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate spi module and contents #581

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<artifactId>microprofile-openapi-api</artifactId>
<name>MicroProfile OpenAPI API</name>
<description>MicroProfile OpenAPI API :: API</description>
<description>MicroProfile OpenAPI :: API</description>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
* }
* </pre>
* <p>
* When this annotation is applied to a Jakarta REST resource class, the response is added to the responses defined in all
* OpenAPI operations which correspond to a method on that class. If an operation already has a response with the
* When this annotation is applied to a Jakarta REST resource class, the response is added to the responses defined in
* all OpenAPI operations which correspond to a method on that class. If an operation already has a response with the
* specified responseCode the response is not added to that operation.
*
* <p>
* When this annotation is applied to an <code>ExceptionMapper</code> class or <code>toResponse</code> method, it allows
* developers to describe the API response that will be added to a generated OpenAPI operation based on a Jakarta REST method
* that declares an <code>Exception</code> of the type handled by the <code>ExceptionMapper</code>.
* developers to describe the API response that will be added to a generated OpenAPI operation based on a Jakarta REST
* method that declares an <code>Exception</code> of the type handled by the <code>ExceptionMapper</code>.
*
* <pre>
* &#64;Provider
Expand Down
10 changes: 7 additions & 3 deletions spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@

<artifactId>microprofile-openapi-spi</artifactId>
<name>MicroProfile OpenAPI SPI</name>
<description>MicroProfile OpenAPI SPI :: SPI</description>
<description>
MicroProfile OpenAPI :: SPI

This module is deprecated and will be removed in a future release of MicroProfile
OpenAPI. The functionality offered by this module is available in the microprofile-openapi-api
module which should be used instead.
</description>

<dependencies>
<dependency>
Expand All @@ -37,6 +43,4 @@
<artifactId>microprofile-openapi-api</artifactId>
</dependency>
</dependencies>


</project>
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
* Service provider for OASFactoryResolver. The implementation registers itself via the {@link java.util.ServiceLoader}
* mechanism or by manually setting their implementation using the setInstance method.
*
* @deprecated the OASFactoryResolver available in module
* {@code org.eclipse.microprofile.openapi:microprofile-openapi-api} should be used instead of this version
* which will be removed in a future major release.
*/
@Deprecated(forRemoval = true)
public abstract class OASFactoryResolver {

private static volatile OASFactoryResolver instance = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@

/**
* Service provider interface which allows vendors to set their implementations of OASFactoryResolver.
* <p>
* The {@code org.eclipse.microprofile.openapi.spi} package available in module
* {@code org.eclipse.microprofile.openapi:microprofile-openapi-api} should be used instead of this version which will
* be removed in a future major release.
*/

@Deprecated(forRemoval = true)
@org.osgi.annotation.versioning.Version("1.0")
package org.eclipse.microprofile.openapi.spi;
package org.eclipse.microprofile.openapi.spi;
Loading