更新日志
Changelog of the ApiHug SDK.
wire command to streamline generated code management. Running wire now automatically moves all generated artifacts into the generated/ directory, reducing manual overhead and ensuring consistent output placement.api.index.csv missed the table part indextenantId, updatedBy if passed by caller instead of pick from context.pages.jsonAuthortyPermission information// @formatter:off for generated code avoid the auto code formatterversions, and api get by version(passed through parameters:version=?)apiRoot for wire module, set api prefix globally; 如何定义api根目录Enum in Hope 如何处理EnumAuditContextSupplier generated independently instead with domain entity logicDSL 风格的 BDD 定义方式,遵循面向消费者的测试 - 契约测试原则wire proto 过程中引入了新的 kolaTest 任务cn_message - > message2UPPER_FIRST -> CAPITALIZESNAKE stylemyVariableNamemy_variable_nameUPPER stylename -> NAMENAME -> nameuserName -> UserNamehope.common.persistence.plugin.NameMappingStrategy client plugin to rename the column name.Example:
{
"persistence": {
"identifyType": "LONG",
"tenantType": "LONG",
"format": "CAMEL",
"upper": "UPPER"
}
}
stub -DenableExperiment=true to enable it!errors, dictionaries,authorities
/hope/meta/errors/hope/meta/dictionaries/hope/meta/authoritiesEnumWriter, PojoWriter, ServiceWriter to avoid code conflict for merger for ApiCollectorgetConvertersToRegister & basePackages & Database avoid code chaos during merger!Java parser not support 17 syntaxRepository maintain way to Trait separated location, make code clean;lite as default model for the stub side, make it more swiftSecurityCustomizer code template make the comment style perfectJWTFilter make it support customized jwt pick for example from header or cookies etc.blank & empty, consider as required implicitlyread_only supportOAS sort as alphabetically descendingfinal String name = groupId + "_" + artifactId + ".json";
avoid possible conflictdefaultValue = 1 of the @Schema annotation to defaultValue = "1"google.protobuf.BoolValue -> hope.mock.BoolRule, less code, more straightforward.authorization_struct --> RBAC make it more user friendly: RBAC rbac = 2;google.protobuf.BoolValue blank = 49; for the String specific field
empty vs blank, blank more for the string field, string field may not empty, but may be blank, as it include
no qualify character, like space, tab, etc.