removed m2m markers

This commit is contained in:
2026-09-05 00:28:15 +02:00
parent 72b9a116be
commit fe83013c37
3 changed files with 2 additions and 65 deletions
-18
View File
@@ -361,15 +361,6 @@ spec withConfig = withConfig baseCfg $ describe "OpenAPI" $ do
}
|]
it "includes m2m relationship markers in the table description" $ do
r <- simpleBody <$> get "/"
let beingDescription = r ^? key "definitions" . key "being" . key "description"
liftIO $
beingDescription `shouldBe` Just
[aesonQQ|"<m2m table='part' junction='being_part' source='being' target='part'/>"|]
it "includes a composite foreign key marker with the full column mapping" $ do
r <- simpleBody <$> get "/"
@@ -400,15 +391,6 @@ spec withConfig = withConfig baseCfg $ describe "OpenAPI" $ do
}
|]
it "includes composite m2m relationship markers in the table description" $ do
r <- simpleBody <$> get "/"
let beingDescription = r ^? key "definitions" . key "comp_being" . key "description"
liftIO $
beingDescription `shouldBe` Just
[aesonQQ|"<m2m table='comp_thing' junction='comp_being_thing' source='a,b' target='x,y'/>"|]
describe "Foreign table" $
it "includes foreign table properties" $ do