You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that there's a dictionary Add exception leaking out of the provider that could be easily worked around by changing usages of .Add(key, value) to use the indexer : [key] <- value.
Per MSDN, the indexer never throws.
Repro steps
run the provider pointed at the json config in this gist
Expected behavior
It would be great if the duplicate key was either avoided using the indexer, or the key that caused the error was reported.
Actual behavior
you get this error:
Known workarounds
None at the moment, investigating to see if there's an error in my schema.
Related information
Swagger Provider 0.5 on f# 4.0
The text was updated successfully, but these errors were encountered:
Description
I believe that there's a dictionary Add exception leaking out of the provider that could be easily worked around by changing usages of .Add(key, value) to use the indexer : [key] <- value.
Per MSDN, the indexer never throws.
Repro steps
run the provider pointed at the json config in this gist
Expected behavior
It would be great if the duplicate key was either avoided using the indexer, or the key that caused the error was reported.
Actual behavior
you get this error:
![image](https://cloud.githubusercontent.com/assets/573979/14722089/73d5cbf4-07cf-11e6-8361-9b780b7dafef.png)
Known workarounds
None at the moment, investigating to see if there's an error in my schema.
Related information
Swagger Provider 0.5 on f# 4.0
The text was updated successfully, but these errors were encountered: