File tree Expand file tree Collapse file tree 3 files changed +26
-5
lines changed
src/main/java/io/openapiprocessor/api/v2 Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 1212 * plugin) it must implement this interface and have a
1313 * {@code META-INF/services/io.openapiprocessor.api.v1.OpenApiProcessor} property file in the
1414 * resources with the class name of the implementing class.
15- *
1615 * <p>
1716 * A consumer should be able to provide access to any processor that is found on the class path.
18- *
17+ * <p>
1918 * The gradle plugin uses the name provided by the api to configure the processor and to provide a
2019 * task to run it. This task will find and run an openapi-processor by using the
2120 * {@code OpenApiProcessor} service interface. By using an interface it does not need an explicit
@@ -26,11 +25,9 @@ public interface OpenApiProcessor {
2625 /**
2726 * The identifying name of the openapi-processor. *Should* be globally unique so a consumer of
2827 * this interface can distinguish between different openapi-processors.
29- *
3028 * <p>
3129 * It is recommended to return here the last part of the full openapi-processor name. If the
3230 * processor jar name is {@code openapi-processor-spring} the name should be {@code spring}.
33- * </p>
3431 *
3532 * @return the unique name of the openapi-processor
3633 */
Original file line number Diff line number Diff line change 55
66package io .openapiprocessor .api .v2 ;
77
8+ /**
9+ * Interface to provide (optional) version information of a processor. This must be implemented by
10+ * the same class that implements {@link OpenApiProcessor}.
11+ */
812public interface OpenApiProcessorVersion {
913
1014 /**
11- * The version of this openapi-processor.
15+ * The version of this openapi-processor. E.g. 2023.1
1216 *
1317 * @return the version of this processor
1418 */
Original file line number Diff line number Diff line change 77
88import java .time .Instant ;
99
10+ /**
11+ * details of a version.
12+ */
1013public interface Version {
14+ /**
15+ * the version of this openapi-processor. E.g. 2023.1
16+ *
17+ * @return the version of this processor
18+ */
1119 String getName ();
20+
21+ /**
22+ * the published date of this version.
23+ *
24+ * @return publish date
25+ */
1226 Instant getPublishedAt ();
27+
28+ /**
29+ * the version information.
30+ *
31+ * @return version information.
32+ */
1333 String getText ();
1434}
You can’t perform that action at this time.
0 commit comments