Skip to content

[Bug]: autoentities and dab validate #3335

@JerryNixon

Description

@JerryNixon

dab validate throws unhandled exception on autoentity/entity name conflict

@RubenCerna2079, I cannot be sure, maybe you have already resolved this.

Error

Unhandled exception. System.AggregateException: One or more errors occurred.
(Entity with name 'Todo' already exists. Cannot create new entity from autoentity pattern with definition-name 'my-def'.)

Expected

Error: Entity 'Todo' conflicts with autoentity pattern 'my-def'. Use --patterns.exclude to skip it.

Repro

dab init --database-type mssql --connection-string "..." --config test.json
dab add Todo -s "dbo.Todo" --permissions "anonymous:*" --config test.json
dab auto-config my-def --patterns.include "dbo.%" --permissions "anonymous:read" --config test.json
dab validate --config test.json

Metadata

Metadata

Type

Projects

Status

Review In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions