fix: empty enum in 'preferParams' openAPI parameter

This commit is contained in:
Laurence Isla
2025-08-29 22:57:56 +00:00
parent 7a2840fba6
commit 043b1f97ee
3 changed files with 10 additions and 1 deletions
+7
View File
@@ -1085,6 +1085,13 @@ spec = describe "OpenAPI" $ do
immutableGet `shouldNotBe` Nothing
immutablePost `shouldNotBe` Nothing
it "does not include empty enum in the preferParams parameter" $ do
r <- simpleBody <$> get "/"
let preferParams = r ^? key "parameters" . key "preferParams" . key "enum"
liftIO $ do
preferParams `shouldBe` Nothing
describe "Security" $
it "does not include security or security definitions by default" $ do
r <- simpleBody <$> get "/"