Configure Swagger to take first action in case of conflicts
Fixes #1252
This commit is contained in:
parent
abc4e5389c
commit
cb0ed30ca1
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Elsa;
|
||||
using Elsa.Models;
|
||||
using Elsa.Server.Api;
|
||||
|
|
@ -76,6 +77,8 @@ namespace Microsoft.Extensions.DependencyInjection
|
|||
Type = PrimitiveType.String.ToString().ToLower(),
|
||||
Example = new OpenApiString("System.String, mscorlib")
|
||||
});
|
||||
|
||||
c.ResolveConflictingActions(d => d.First());
|
||||
|
||||
configure?.Invoke(c);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue