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

com.tsingxiao.unionj.generator.mock.schemafaker.SchemaFaker Maven / Gradle / Ivy

package com.tsingxiao.unionj.generator.mock.schemafaker;

import com.fasterxml.jackson.databind.JsonNode;
import com.tsingxiao.unionj.generator.openapi3.model.Schema;

import java.util.List;
import java.util.Map;

/**
 * 

SchemaFaker interface.

* * created by wubin * v0.1 * com.tsingxiao.unionj.generator.mock.schemafaker * @author tqccc * @version $Id: $Id */ public interface SchemaFaker { /** *

fakeFormat.

* * @param format a {@link java.lang.String} object. * @return a {@link com.fasterxml.jackson.databind.JsonNode} object. */ JsonNode fakeFormat(String format); /** *

fakeEnum.

* * @param enums a {@link java.util.List} object. * @return a {@link com.fasterxml.jackson.databind.JsonNode} object. */ JsonNode fakeEnum(List enums); /** *

fakePrimitiveType.

* * @param type a {@link java.lang.String} object. * @return a {@link com.fasterxml.jackson.databind.JsonNode} object. */ JsonNode fakePrimitiveType(String type); /** *

fakeObject.

* * @param schema a {@link com.tsingxiao.unionj.generator.openapi3.model.Schema} object. * @return a {@link com.fasterxml.jackson.databind.JsonNode} object. */ JsonNode fakeObject(Schema schema); /** *

setSchemas.

* * @param schemas a {@link java.util.Map} object. */ void setSchemas(Map schemas); /** *

getSchemaByRef.

* * @param ref a {@link java.lang.String} object. * @return a {@link com.tsingxiao.unionj.generator.openapi3.model.Schema} object. */ Schema getSchemaByRef(String ref); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy