Skip to content

Commit

Permalink
Merge pull request #683 from bci-oss/unbreak-deprecated-apis
Browse files Browse the repository at this point in the history
Add back deprecated removed backwards compatible APIs
  • Loading branch information
atextor authored Dec 9, 2024
2 parents 14d5b45 + e6f73bc commit 0072d12
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ public class AspectModelJsonSchemaGenerator extends JsonGenerator<JsonSchemaGene
@Deprecated( forRemoval = true )
public static final AspectModelJsonSchemaGenerator INSTANCE = new AspectModelJsonSchemaGenerator( null );

/**
* Kept for backwards compatibility
*
* @deprecated Use {@link #AspectModelJsonSchemaGenerator(Aspect)} or
* {@link #AspectModelJsonSchemaGenerator(Aspect, JsonSchemaGenerationConfig)} instead
*/
@Deprecated( forRemoval = true )
public AspectModelJsonSchemaGenerator() {
this( null );
}

public AspectModelJsonSchemaGenerator( final Aspect aspect ) {
this( aspect, DEFAULT_CONFIG );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ public class AspectModelOpenApiGenerator extends JsonGenerator<OpenApiSchemaGene
private static final AspectModelPagingGenerator PAGING_GENERATOR = new AspectModelPagingGenerator();
private static final Logger LOG = LoggerFactory.getLogger( AspectModelOpenApiGenerator.class );

/**
* Kept for backwards compatibility
*
* @deprecated Use {@link #AspectModelOpenApiGenerator(Aspect)} or
* {@link #AspectModelOpenApiGenerator(Aspect, OpenApiSchemaGenerationConfig)} instead
*/
@Deprecated( forRemoval = true )
public AspectModelOpenApiGenerator() {
this( null );
}

public AspectModelOpenApiGenerator( final Aspect aspect ) {
this( aspect, DEFAULT_CONFIG );
}
Expand All @@ -121,6 +132,16 @@ public AspectModelOpenApiGenerator( final Aspect aspect, final OpenApiSchemaGene
super( aspect, config );
}

/**
* Kept for backwards compatibility
*
* @deprecated Use {@link #AspectModelOpenApiGenerator(Aspect, OpenApiSchemaGenerationConfig)} and {@link #singleResult()} instead
*/
@Deprecated( forRemoval = true )
public OpenApiSchemaArtifact apply( final Aspect aspect, final OpenApiSchemaGenerationConfig config ) {
return new AspectModelOpenApiGenerator( aspect, config ).singleResult();
}

/**
* Generates an OpenAPI specification for the given Aspect Model.
*
Expand Down

0 comments on commit 0072d12

Please sign in to comment.