This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IReadOnlyCollection<DbBatchCommand> RecordCommands<TContext, TResult>(this TContext dbCtx, params Func<TContext, TResult>[] getResults) where TContext : DbContext | |
{ | |
using (RecordCommandsScope.StartNew()) | |
{ | |
foreach (var getResult in getResults) | |
getResult(dbCtx); | |
return RecordCommandsScope.Current.RecordedCommands; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let res = await fetch('https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json'); | |
let spec = await res.json(); | |
function printRequiredParametersOnGet() | |
{ | |
for (let path in spec.paths) | |
{ | |
if (path.indexOf('{') >= 0) | |
continue; | |
let verbs = spec.paths[path]; |