removed m2m markers
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
-23
@@ -1275,29 +1275,6 @@ create table test.comp_component_instance (
|
||||
constraint comp_component_instance_component_fkey foreign key (product_id, component_id) references test.comp_component(product_id, component_id)
|
||||
);
|
||||
|
||||
-- Tables for testing composite m2m relationships in the OpenAPI output
|
||||
create table test.comp_being (
|
||||
a int not null,
|
||||
b int not null,
|
||||
primary key(a, b)
|
||||
);
|
||||
|
||||
create table test.comp_thing (
|
||||
x int not null,
|
||||
y int not null,
|
||||
primary key(x, y)
|
||||
);
|
||||
|
||||
create table test.comp_being_thing (
|
||||
a int not null,
|
||||
b int not null,
|
||||
x int not null,
|
||||
y int not null,
|
||||
primary key(a, b, x, y),
|
||||
constraint comp_being_thing_being_fkey foreign key (a, b) references test.comp_being(a, b),
|
||||
constraint comp_being_thing_thing_fkey foreign key (x, y) references test.comp_thing(x, y)
|
||||
);
|
||||
|
||||
create function test.single_out_param(num int, OUT num_plus_one int) AS $$
|
||||
select num + 1;
|
||||
$$ language sql;
|
||||
|
||||
Reference in New Issue
Block a user