fix: empty enum in 'preferParams' openAPI parameter

This commit is contained in:
Laurence Isla
2025-08-30 08:31:21 +02:00
committed by Wolfgang Walther
parent bf0a1173b5
commit ea153523d1
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 "/"