diff --git a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/NameUtils.java b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/NameUtils.java index 73bd2ae1..30619c0c 100644 --- a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/NameUtils.java +++ b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/NameUtils.java @@ -15,9 +15,12 @@ */ package io.micronaut.jsonschema.visitor; +import io.micronaut.core.annotation.Internal; + /** * A utility class for name conversions. */ +@Internal public class NameUtils { /** diff --git a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/DocumentationInfoAggregator.java b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/DocumentationInfoAggregator.java index 89ad8bf3..d593328d 100644 --- a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/DocumentationInfoAggregator.java +++ b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/DocumentationInfoAggregator.java @@ -18,6 +18,7 @@ import com.github.javaparser.StaticJavaParser; import com.github.javaparser.javadoc.Javadoc; import com.github.javaparser.javadoc.JavadocBlockTag; +import io.micronaut.core.annotation.Internal; import io.micronaut.inject.ast.ClassElement; import io.micronaut.inject.ast.PropertyElement; import io.micronaut.inject.ast.TypedElement; @@ -32,6 +33,7 @@ /** * An aggregator for adding information from the jackson serialization annotations. */ +@Internal public class DocumentationInfoAggregator implements SchemaInfoAggregator { @Override diff --git a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/JacksonInfoAggregator.java b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/JacksonInfoAggregator.java index 6e17644f..4ee5527b 100644 --- a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/JacksonInfoAggregator.java +++ b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/JacksonInfoAggregator.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonUnwrapped; import io.micronaut.core.annotation.AnnotationValue; +import io.micronaut.core.annotation.Internal; import io.micronaut.inject.ast.ClassElement; import io.micronaut.inject.ast.PropertyElement; import io.micronaut.inject.ast.TypedElement; @@ -43,6 +44,7 @@ /** * An aggregator for adding information from the jackson serialization annotations. */ +@Internal public class JacksonInfoAggregator implements SchemaInfoAggregator { @Override diff --git a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/SchemaInfoAggregator.java b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/SchemaInfoAggregator.java index d4a3e295..e9470abd 100644 --- a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/SchemaInfoAggregator.java +++ b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/SchemaInfoAggregator.java @@ -15,6 +15,7 @@ */ package io.micronaut.jsonschema.visitor.aggregator; +import io.micronaut.core.annotation.Internal; import io.micronaut.inject.ast.TypedElement; import io.micronaut.inject.visitor.VisitorContext; import io.micronaut.jsonschema.visitor.JsonSchemaConfigurationVisitor.JsonSchemaContext; @@ -26,6 +27,7 @@ * @since 1.0.0 * @author Andriy Dmytruk */ +@Internal public interface SchemaInfoAggregator { /** diff --git a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/ValidationInfoAggregator.java b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/ValidationInfoAggregator.java index 5c52ab54..b32e5272 100644 --- a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/ValidationInfoAggregator.java +++ b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/aggregator/ValidationInfoAggregator.java @@ -15,6 +15,7 @@ */ package io.micronaut.jsonschema.visitor.aggregator; +import io.micronaut.core.annotation.Internal; import io.micronaut.inject.ast.ClassElement; import io.micronaut.inject.ast.TypedElement; import io.micronaut.inject.visitor.VisitorContext; @@ -29,6 +30,7 @@ /** * An aggregator for adding information from the validation annotations. */ +@Internal public class ValidationInfoAggregator implements SchemaInfoAggregator { private static final String JAKARTA_VALIDATION_PREFIX = "jakarta.validation.constraints."; diff --git a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/model/Schema.java b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/model/Schema.java index 7973669d..dd0372b6 100644 --- a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/model/Schema.java +++ b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/model/Schema.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; +import io.micronaut.core.annotation.Internal; import java.util.ArrayList; import java.util.LinkedHashMap; @@ -28,6 +29,7 @@ /** * A JSON schema. */ +@Internal public final class Schema { public static final String SCHEMA_DRAFT_2022_12 = "https://json-schema.org/draft/2020-12/schema"; diff --git a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/serialization/JsonSchemaMapperFactory.java b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/serialization/JsonSchemaMapperFactory.java index b75cb6b1..73441e54 100644 --- a/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/serialization/JsonSchemaMapperFactory.java +++ b/json-schema-processor/src/main/java/io/micronaut/jsonschema/visitor/serialization/JsonSchemaMapperFactory.java @@ -19,10 +19,12 @@ import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; +import io.micronaut.core.annotation.Internal; /** * A factory of mappers for swagger serialization and deserialization. */ +@Internal public class JsonSchemaMapperFactory { /**