Search in sources :

Example 1 with MapPropertyConverter

use of io.servicecomb.swagger.converter.property.MapPropertyConverter in project java-chassis by ServiceComb.

the class ConverterMgr method initConverters.

private static void initConverters() {
    // inner converters
    for (Class<? extends Property> propertyCls : PROPERTY_MAP.keySet()) {
        addInnerConverter(propertyCls);
    }
    converterMap.put(RefProperty.class, new RefPropertyConverter());
    converterMap.put(ArrayProperty.class, new ArrayPropertyConverter());
    converterMap.put(MapProperty.class, new MapPropertyConverter());
    converterMap.put(StringProperty.class, new StringPropertyConverter());
    converterMap.put(ModelImpl.class, new ModelImplConverter());
    converterMap.put(RefModel.class, new RefModelConverter());
    converterMap.put(BodyParameter.class, new BodyParameterConverter());
    converterMap.put(PendingBodyParameter.class, new PendingBodyParameterConverter());
    AbstractSerializableParameterConverter converter = new AbstractSerializableParameterConverter();
    converterMap.put(QueryParameter.class, converter);
    converterMap.put(PathParameter.class, converter);
    converterMap.put(HeaderParameter.class, converter);
    converterMap.put(FormParameter.class, converter);
    converterMap.put(CookieParameter.class, converter);
}
Also used : RefModelConverter(io.servicecomb.swagger.converter.model.RefModelConverter) AbstractSerializableParameterConverter(io.servicecomb.swagger.converter.parameter.AbstractSerializableParameterConverter) PendingBodyParameterConverter(io.servicecomb.swagger.converter.parameter.PendingBodyParameterConverter) BodyParameterConverter(io.servicecomb.swagger.converter.parameter.BodyParameterConverter) PendingBodyParameterConverter(io.servicecomb.swagger.converter.parameter.PendingBodyParameterConverter) RefPropertyConverter(io.servicecomb.swagger.converter.property.RefPropertyConverter) ArrayPropertyConverter(io.servicecomb.swagger.converter.property.ArrayPropertyConverter) MapPropertyConverter(io.servicecomb.swagger.converter.property.MapPropertyConverter) StringPropertyConverter(io.servicecomb.swagger.converter.property.StringPropertyConverter) ModelImplConverter(io.servicecomb.swagger.converter.model.ModelImplConverter)

Aggregations

ModelImplConverter (io.servicecomb.swagger.converter.model.ModelImplConverter)1 RefModelConverter (io.servicecomb.swagger.converter.model.RefModelConverter)1 AbstractSerializableParameterConverter (io.servicecomb.swagger.converter.parameter.AbstractSerializableParameterConverter)1 BodyParameterConverter (io.servicecomb.swagger.converter.parameter.BodyParameterConverter)1 PendingBodyParameterConverter (io.servicecomb.swagger.converter.parameter.PendingBodyParameterConverter)1 ArrayPropertyConverter (io.servicecomb.swagger.converter.property.ArrayPropertyConverter)1 MapPropertyConverter (io.servicecomb.swagger.converter.property.MapPropertyConverter)1 RefPropertyConverter (io.servicecomb.swagger.converter.property.RefPropertyConverter)1 StringPropertyConverter (io.servicecomb.swagger.converter.property.StringPropertyConverter)1