Skip to content

Commit

Permalink
Merge pull request #3780 from atlanhq/mesh-280-validation
Browse files Browse the repository at this point in the history
MESH-280 : Validation for dataProductAssetsDSL
  • Loading branch information
PRATHAM2002-DS authored Nov 21, 2024
2 parents afe1a35 + d4c2f42 commit d511366
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void processCreateProduct(AtlasEntity entity,AtlasVertex vertex) throws
entity.removeAttribute(OUTPUT_PORT_GUIDS_ATTR);
entity.removeAttribute(INPUT_PORT_GUIDS_ATTR);

if(!entity.hasAttribute(DAAP_ASSET_DSL_ATTR) && entity.getAttribute(DAAP_ASSET_DSL_ATTR) == null){
if(!entity.hasAttribute(DAAP_ASSET_DSL_ATTR) || entity.getAttribute(DAAP_ASSET_DSL_ATTR) == null){
throw new AtlasBaseException(AtlasErrorCode.BAD_REQUEST, "DataProductAssetDSL attribute is mandatory for DataProduct creation");
}

Expand Down

0 comments on commit d511366

Please sign in to comment.