Skip to content

Commit 74ab942

Browse files
authored
Merge pull request #679 from Azquelt/add-target
Add `@Target` to annotations where it was missing
2 parents 863991a + 1bd1646 commit 74ab942

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

api/src/main/java/org/eclipse/microprofile/openapi/annotations/media/DependentRequired.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
package org.eclipse.microprofile.openapi.annotations.media;
1717

18+
import java.lang.annotation.Target;
19+
1820
/**
1921
* A property name and an associated list of other property names.
2022
* <p>
@@ -24,6 +26,7 @@
2426
* @see Schema#dependentRequired()
2527
* @since 4.0
2628
*/
29+
@Target({})
2730
public @interface DependentRequired {
2831

2932
/**

api/src/main/java/org/eclipse/microprofile/openapi/annotations/media/DependentSchema.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
package org.eclipse.microprofile.openapi.annotations.media;
1717

18+
import java.lang.annotation.Target;
19+
1820
/**
1921
* A property name and an associated schema.
2022
* <p>
@@ -24,6 +26,7 @@
2426
* @see Schema#dependentSchemas()
2527
* @since 4.0
2628
*/
29+
@Target({})
2730
public @interface DependentSchema {
2831

2932
/**

api/src/main/java/org/eclipse/microprofile/openapi/annotations/media/SchemaProperty.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.lang.annotation.Inherited;
2020
import java.lang.annotation.Retention;
2121
import java.lang.annotation.RetentionPolicy;
22+
import java.lang.annotation.Target;
2223

2324
import org.eclipse.microprofile.openapi.annotations.ExternalDocumentation;
2425
import org.eclipse.microprofile.openapi.annotations.enums.SchemaType;
@@ -37,6 +38,7 @@
3738
*
3839
* @since 2.0
3940
**/
41+
@Target({})
4042
@Retention(RetentionPolicy.RUNTIME)
4143
@Inherited
4244
public @interface SchemaProperty {

api/src/main/java/org/eclipse/microprofile/openapi/annotations/media/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
* </pre>
2626
*/
2727

28-
@org.osgi.annotation.versioning.Version("1.3")
28+
@org.osgi.annotation.versioning.Version("1.3.1")
2929
@org.osgi.annotation.versioning.ProviderType
3030
package org.eclipse.microprofile.openapi.annotations.media;

0 commit comments

Comments
 (0)