@CommonSchemaAttributes(defaultValue = "jwt") private AuthenticationType type;
if (StringUtil.isNotBlank(commonAnno.defaultValue())) schema.setDefaultValue(commonAnno.defaultValue()); if (StringUtil.isNotBlank(commonAnno.title())) schema.setTitle(commonAnno.title()); if (StringUtil.isNotBlank(commonAnno.description())) schema.setDescription(commonAnno.description()); if (commonAnno.allOf().length > 0) schema.setAllOf(generateSchemaSet(commonAnno.allOf())); if (commonAnno.anyOf().length > 0) schema.setAnyOf(generateSchemaSet(commonAnno.anyOf())); if (commonAnno.oneOf().length > 0) schema.setOneOf(generateSchemaSet(commonAnno.oneOf())); if (!AnnotationHelper.EmptyClass.class.getName().equals(commonAnno.not().getName())) schema.setNot(generateObjectSchema(commonAnno.not(), null));
protected String getFieldTitle(Class<?> theClass, Field theField) { SchemaClassDoc classDoc = schemaDocs.getClassDoc(theClass.getName()); String title = null; if (null != classDoc) { SchemaFieldDoc fieldDoc = classDoc.getFieldDoc(theField.getName()); if (null != fieldDoc) { if (isNotBlank(fieldDoc.getFieldTitle())) { title = fieldDoc.getFieldTitle(); } } } if (null == title) { if (theField.isAnnotationPresent(CommonSchemaAttributes.class)) { title = theField.getAnnotation(CommonSchemaAttributes.class).title(); } } return title; }
protected String getFieldTitle(Class<?> theClass, Field theField) { SchemaClassDoc classDoc = schemaDocs.getClassDoc(theClass.getName()); String title = null; if (null != classDoc) { SchemaFieldDoc fieldDoc = classDoc.getFieldDoc(theField.getName()); if (null != fieldDoc) { if (isNotBlank(fieldDoc.getFieldTitle())) { title = fieldDoc.getFieldTitle(); } } } if (null == title) { if (theField.isAnnotationPresent(CommonSchemaAttributes.class)) { title = theField.getAnnotation(CommonSchemaAttributes.class).title(); } } return title; }
if (StringUtil.isNotBlank(commonAnno.defaultValue())) schema.setDefaultValue(commonAnno.defaultValue()); if (StringUtil.isNotBlank(commonAnno.title())) schema.setTitle(commonAnno.title()); if (StringUtil.isNotBlank(commonAnno.description())) schema.setDescription(commonAnno.description()); if (commonAnno.allOf().length > 0) schema.setAllOf(generateSchemaSet(commonAnno.allOf())); if (commonAnno.anyOf().length > 0) schema.setAnyOf(generateSchemaSet(commonAnno.anyOf())); if (commonAnno.oneOf().length > 0) schema.setOneOf(generateSchemaSet(commonAnno.oneOf())); if (!AnnotationHelper.EmptyClass.class.getName().equals(commonAnno.not().getName())) schema.setNot(generateObjectSchema(commonAnno.not(), null));
@CommonSchemaAttributes(defaultValue = "jwt") private AuthenticationType type;
@CommonSchemaAttributes(defaultValue = "page") private WebItemTargetType type;
@CommonSchemaAttributes(defaultValue = "page") private WebItemTargetType type;
@CommonSchemaAttributes(defaultValue = "true") private boolean enabled;
@CommonSchemaAttributes(defaultValue = "edit") private CreateResultType createResult;
@CommonSchemaAttributes(defaultValue = "get") private MacroRenderingMethodType renderingMethod;
@CommonSchemaAttributes(defaultValue = "true") private Boolean chrome;
@CommonSchemaAttributes(defaultValue = "true") private Boolean chrome;
@CommonSchemaAttributes(defaultValue = "storage") private CustomContentBodyType bodyType; @CommonSchemaAttributes(defaultValue = "false") private Boolean preventDuplicateTitle;
@CommonSchemaAttributes(defaultValue = "addon") private AddonUrlContext context;
@CommonSchemaAttributes(defaultValue = "addon") private AddonUrlContext context;
@CommonSchemaAttributes(title = "en-US") @StringSchemaAttributes(format = "uri") private String en_US; @SerializedName("en-UK") @CommonSchemaAttributes(title = "en-UK") @StringSchemaAttributes(format = "uri") private String en_UK; @SerializedName("fr-FR") @CommonSchemaAttributes(title = "fr-FR") @StringSchemaAttributes(format = "uri") private String fr_FR; @SerializedName("de-DE") @CommonSchemaAttributes(title = "de-DE") @StringSchemaAttributes(format = "uri") private String de_DE; @SerializedName("pt-PT") @CommonSchemaAttributes(title = "pt-PT") @StringSchemaAttributes(format = "uri") private String pt_PT; @SerializedName("es-ES") @CommonSchemaAttributes(title = "es-ES") @StringSchemaAttributes(format = "uri") private String es_ES; @SerializedName("ja-JP") @CommonSchemaAttributes(title = "ja-JP") @StringSchemaAttributes(format = "uri") private String ja_JP; @SerializedName("ko-KR") @CommonSchemaAttributes(title = "ko-KR")
@CommonSchemaAttributes(defaultValue = "") private String addonKey;
@CommonSchemaAttributes(defaultValue = "") private String addonKey;
@CommonSchemaAttributes(defaultValue = "block") private MacroOutputType outputType; @CommonSchemaAttributes(defaultValue = "none") private MacroBodyType bodyType; @CommonSchemaAttributes(defaultValue = "false") private Boolean featured; @CommonSchemaAttributes(defaultValue = "false") private Boolean hidden;