Skip to content

Commit

Permalink
Merge pull request #17 from micronaut-projects/annotate-with-internal
Browse files Browse the repository at this point in the history
annotate processor classes with @internal
  • Loading branch information
andriy-dmytruk authored Apr 10, 2024
2 parents 646916c + 02ce616 commit 97483a5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -32,6 +33,7 @@
/**
* An aggregator for adding information from the jackson serialization annotations.
*/
@Internal
public class DocumentationInfoAggregator implements SchemaInfoAggregator {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -43,6 +44,7 @@
/**
* An aggregator for adding information from the jackson serialization annotations.
*/
@Internal
public class JacksonInfoAggregator implements SchemaInfoAggregator {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -26,6 +27,7 @@
* @since 1.0.0
* @author Andriy Dmytruk
*/
@Internal
public interface SchemaInfoAggregator {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

/**
Expand Down

0 comments on commit 97483a5

Please sign in to comment.