Browse Source
Merge pull request #15401 from dashevchenko/openAPI/requiredFieldsCleanup
[OpenAPI] Redundant required mode cleanup
pull/15404/head
Viacheslav Klimov
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
1 additions and
3 deletions
-
common/data/src/main/java/org/thingsboard/server/common/data/ai/AiModel.java
-
common/data/src/main/java/org/thingsboard/server/common/data/rule/RuleChain.java
|
|
|
@ -46,7 +46,6 @@ public final class AiModel extends BaseData<AiModelId> implements HasTenantId, H |
|
|
|
private static final long serialVersionUID = 9017108678716011604L; |
|
|
|
|
|
|
|
@Schema( |
|
|
|
requiredMode = Schema.RequiredMode.REQUIRED, |
|
|
|
accessMode = Schema.AccessMode.READ_ONLY, |
|
|
|
description = "JSON object representing the ID of the tenant associated with this AI model", |
|
|
|
example = "e3c4b7d2-5678-4a9b-0c1d-2e3f4a5b6c7d" |
|
|
|
@ -54,7 +53,6 @@ public final class AiModel extends BaseData<AiModelId> implements HasTenantId, H |
|
|
|
private TenantId tenantId; |
|
|
|
|
|
|
|
@Schema( |
|
|
|
requiredMode = Schema.RequiredMode.REQUIRED, |
|
|
|
accessMode = Schema.AccessMode.READ_ONLY, |
|
|
|
description = "Version of the AI model record; increments automatically whenever the record is changed", |
|
|
|
example = "7", |
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ public class RuleChain extends BaseDataWithAdditionalInfo<RuleChainId> implement |
|
|
|
|
|
|
|
private static final long serialVersionUID = -5656679015121935465L; |
|
|
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "JSON object with Tenant Id.", accessMode = Schema.AccessMode.READ_ONLY) |
|
|
|
@Schema(description = "JSON object with Tenant Id.", accessMode = Schema.AccessMode.READ_ONLY) |
|
|
|
private TenantId tenantId; |
|
|
|
@NoXss |
|
|
|
@Length(fieldName = "name") |
|
|
|
|