Import Swagger generator (#15)

This commit is contained in:
Patrick Stevens
2024-10-08 08:47:21 +01:00
committed by GitHub
parent b9761f6dee
commit bbc92a0478
18 changed files with 74812 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
namespace WoofWare.Whippet.Plugin.Swagger
[<RequireQualifiedAccess>]
module internal List =
let allSome<'a> (l : 'a option list) : 'a list option =
let rec go acc (l : 'a option list) =
match l with
| [] -> Some (List.rev acc)
| None :: _ -> None
| Some head :: tail -> go (head :: acc) tail
go [] l