All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.micronaut.openapi.introspections.MediaConfiguration Maven / Gradle / Ivy

/*
 * Copyright 2017-2023 original authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.micronaut.openapi.introspections;

import io.micronaut.core.annotation.Introspected;
import io.micronaut.openapi.SimpleSchema;
import io.swagger.v3.oas.models.media.ArraySchema;
import io.swagger.v3.oas.models.media.BinarySchema;
import io.swagger.v3.oas.models.media.BooleanSchema;
import io.swagger.v3.oas.models.media.ByteArraySchema;
import io.swagger.v3.oas.models.media.ComposedSchema;
import io.swagger.v3.oas.models.media.Content;
import io.swagger.v3.oas.models.media.DateSchema;
import io.swagger.v3.oas.models.media.DateTimeSchema;
import io.swagger.v3.oas.models.media.Discriminator;
import io.swagger.v3.oas.models.media.EmailSchema;
import io.swagger.v3.oas.models.media.Encoding;
import io.swagger.v3.oas.models.media.EncodingProperty;
import io.swagger.v3.oas.models.media.FileSchema;
import io.swagger.v3.oas.models.media.IntegerSchema;
import io.swagger.v3.oas.models.media.JsonSchema;
import io.swagger.v3.oas.models.media.MapSchema;
import io.swagger.v3.oas.models.media.MediaType;
import io.swagger.v3.oas.models.media.NumberSchema;
import io.swagger.v3.oas.models.media.ObjectSchema;
import io.swagger.v3.oas.models.media.PasswordSchema;
import io.swagger.v3.oas.models.media.Schema;
import io.swagger.v3.oas.models.media.StringSchema;
import io.swagger.v3.oas.models.media.UUIDSchema;
import io.swagger.v3.oas.models.media.XML;

/**
 * OpenApi introspection configuration for Swagger-model.
 * Adds introspection of the io.swagger.v3.oas.models.media package
 *
 * @author Henrique Mota
 */
@Introspected(classes = {
    ArraySchema.class,
    BinarySchema.class,
    BooleanSchema.class,
    ByteArraySchema.class,
    ComposedSchema.class,
    Content.class,
    DateSchema.class,
    DateTimeSchema.class,
    Discriminator.class,
    EmailSchema.class,
    Encoding.class,
    EncodingProperty.class,
    FileSchema.class,
    IntegerSchema.class,
    JsonSchema.class,
    MapSchema.class,
    MediaType.class,
    NumberSchema.class,
    ObjectSchema.class,
    PasswordSchema.class,
    Schema.class,
    StringSchema.class,
    UUIDSchema.class,
    SimpleSchema.class,
    XML.class,
})
public class MediaConfiguration {
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy