Skip to content

Commit

Permalink
chore(settings)!: make reader bindings IEnumerable to allow for simpl…
Browse files Browse the repository at this point in the history
…er usage

```csharp
new Settings
{
  Bindings = BindingCollection.All,
};
```

BREAKING CHANGE: changes how bindings are applied.
  • Loading branch information
VisualBean committed Oct 24, 2023
1 parent 1df49c8 commit a1ad5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LEGO.AsyncAPI.Readers/AsyncApiReaderSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Dictionary<string, Func<AsyncApiAny, IAsyncApiExtension>>
{ get; set; } =
new Dictionary<string, Func<AsyncApiAny, IAsyncApiExtension>>();

public List<IBindingParser<IBinding>>
public IEnumerable<IBindingParser<IBinding>>
Bindings
{ get; set; } =
new List<IBindingParser<IBinding>>();
Expand Down

0 comments on commit a1ad5a2

Please sign in to comment.