本文整理了Java中com.fasterxml.jackson.module.jsonSchema.JsonSchema.getType()
方法的一些代码示例,展示了JsonSchema.getType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonSchema.getType()
方法的具体详情如下:
包路径:com.fasterxml.jackson.module.jsonSchema.JsonSchema
类名称:JsonSchema
方法名:getType
暂无
代码示例来源:origin: com.fasterxml.jackson.module/jackson-module-jsonSchema
@Override
public String idFromValue(Object value) {
if (value instanceof JsonSchema) {
return ((JsonSchema)value).getType().value();
}
return null;
}
代码示例来源:origin: FasterXML/jackson-module-jsonSchema
@Override
public String idFromValue(Object value) {
if (value instanceof JsonSchema) {
return ((JsonSchema)value).getType().value();
}
return null;
}
代码示例来源:origin: dremio/dremio-oss
private String primitiveTypeExample(JsonSchema schema) {
switch (schema.getType()) {
case ANY:
return "any";
return "? " + schema.getType();
代码示例来源:origin: com.fasterxml.jackson.module/jackson-module-jsonSchema
/**
* Adds writes the type as the title of the schema.
*
* @param schema The schema who's title to set.
* @param type The type of the object represented by the schema.
*/
private void addTitle(JsonSchema schema, JavaType type)
{
if (!schema.isSimpleTypeSchema()) {
throw new RuntimeException("given non simple type schema: " + schema.getType());
}
schema.asSimpleTypeSchema().setTitle(type.getGenericSignature());
}
}
代码示例来源:origin: FasterXML/jackson-module-jsonSchema
/**
* Adds writes the type as the title of the schema.
*
* @param schema The schema who's title to set.
* @param type The type of the object represented by the schema.
*/
private void addTitle(JsonSchema schema, JavaType type)
{
if (!schema.isSimpleTypeSchema()) {
throw new RuntimeException("given non simple type schema: " + schema.getType());
}
schema.asSimpleTypeSchema().setTitle(type.getGenericSignature());
}
}
代码示例来源:origin: FasterXML/jackson-module-jsonSchema
throw new RuntimeException("given non simple type schema: " + schema.getType());
代码示例来源:origin: com.fasterxml.jackson.module/jackson-module-jsonSchema
throw new RuntimeException("given non simple type schema: " + schema.getType());
代码示例来源:origin: com.intel.icecp/icecp-core
String ref;
switch (ft = pSchema.getType()) {
case OBJECT:
pObject = createNewInstance(objectClass);
内容来源于网络,如有侵权,请联系作者删除!