Skip to content

Commit 66252da

Browse files
committed
extract factory for json annotations, added missing file
1 parent 5af9005 commit 66252da

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright 2026 https://github.com/openapi-processor/openapi-processor-base
3+
* PDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.openapiprocessor.core.writer.java
7+
8+
import io.openapiprocessor.core.model.Annotation
9+
import io.openapiprocessor.core.model.datatypes.PropertyDataType
10+
11+
interface JsonAnnotationFactory {
12+
@Deprecated(message = "use methods")
13+
val jsonProperty: Annotation
14+
val jsonCreator: Annotation
15+
val jsonValue: Annotation
16+
17+
/** get property annotations imports */
18+
fun createPropertyImports(propDataType: PropertyDataType): Collection<String>
19+
/** get property annotations */
20+
fun createPropertyAnnotations(propertyName: String, propDataType: PropertyDataType): Collection<String>
21+
}

0 commit comments

Comments
 (0)