Skip to content

Commit ebb3c73

Browse files
committed
feat(composition): validation of supergrpah bin and composition result (#2127)
1 parent 4c2a05f commit ebb3c73

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/composition/supergraph/binary.rs

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use apollo_federation_types::{
66
};
77
use async_trait::async_trait;
88
use camino::Utf8PathBuf;
9+
use derive_getters::Getters;
910
use tap::TapFallible;
1011

1112
use crate::{
@@ -83,6 +84,13 @@ pub struct SupergraphBinary {
8384
output_target: OutputTarget,
8485
}
8586

87+
#[derive(Getters, Debug, Clone, Eq, PartialEq)]
88+
pub struct CompositionOutput {
89+
supergraph_sdl: String,
90+
hints: Vec<BuildHint>,
91+
federation_version: FederationVersion,
92+
}
93+
8694
impl SupergraphBinary {
8795
fn new(exe: Utf8PathBuf, version: SupergraphVersion, output_target: OutputTarget) -> Self {
8896
Self {

0 commit comments

Comments
 (0)