@@ -85,10 +85,10 @@ impl RoverOutput {
85
85
} => {
86
86
eprintln ! (
87
87
"{}#{} Published successfully {}" ,
88
- graph_ref, publish_response. schema_hash , publish_response. change_summary
88
+ graph_ref, publish_response. api_schema_hash , publish_response. change_summary
89
89
) ;
90
90
print_one_line_descriptor ( "Schema Hash" ) ;
91
- print_content ( & publish_response. schema_hash ) ;
91
+ print_content ( & publish_response. api_schema_hash ) ;
92
92
}
93
93
RoverOutput :: SubgraphPublishResponse {
94
94
graph_ref,
@@ -119,9 +119,7 @@ impl RoverOutput {
119
119
if !publish_response. composition_errors . is_empty ( ) {
120
120
let warn_prefix = Red . normal ( ) . paint ( "WARN:" ) ;
121
121
eprintln ! ( "{} The following composition errors occurred:" , warn_prefix, ) ;
122
- for error in publish_response. composition_errors . clone ( ) {
123
- eprintln ! ( "{}" , & error) ;
124
- }
122
+ eprintln ! ( "{}" , & publish_response. composition_errors) ;
125
123
}
126
124
}
127
125
RoverOutput :: SubgraphDeleteResponse {
@@ -139,9 +137,8 @@ impl RoverOutput {
139
137
Cyan . normal( ) . paint( subgraph) ,
140
138
Cyan . normal( ) . paint( graph_ref. to_string( ) ) ,
141
139
) ;
142
- for error in delete_response. composition_errors . clone ( ) {
143
- eprintln ! ( "{}" , & error) ;
144
- }
140
+
141
+ eprintln ! ( "{}" , & delete_response. composition_errors) ;
145
142
eprintln ! ( "{} This is only a prediction. If the graph changes before confirming, these errors could change." , warn_prefix) ;
146
143
} else {
147
144
eprintln ! ( "{} At the time of checking, there would be no composition errors resulting from the deletion of this subgraph." , warn_prefix) ;
@@ -168,9 +165,7 @@ impl RoverOutput {
168
165
warn_prefix,
169
166
) ;
170
167
171
- for error in delete_response. composition_errors . clone ( ) {
172
- eprintln ! ( "{}" , & error) ;
173
- }
168
+ eprintln ! ( "{}" , & delete_response. composition_errors) ;
174
169
}
175
170
}
176
171
}
@@ -675,7 +670,7 @@ mod tests {
675
670
#[ test]
676
671
fn graph_publish_response_json ( ) {
677
672
let mock_publish_response = GraphPublishResponse {
678
- schema_hash : "123456" . to_string ( ) ,
673
+ api_schema_hash : "123456" . to_string ( ) ,
679
674
change_summary : ChangeSummary {
680
675
field_changes : FieldChanges {
681
676
additions : 2 ,
@@ -721,7 +716,7 @@ mod tests {
721
716
#[ test]
722
717
fn subgraph_publish_success_response_json ( ) {
723
718
let mock_publish_response = SubgraphPublishResponse {
724
- schema_hash : Some ( "123456" . to_string ( ) ) ,
719
+ api_schema_hash : Some ( "123456" . to_string ( ) ) ,
725
720
726
721
composition_errors : CompositionErrors :: new ( ) ,
727
722
supergraph_was_updated : true ,
@@ -752,7 +747,7 @@ mod tests {
752
747
#[ test]
753
748
fn subgraph_publish_failure_response_json ( ) {
754
749
let mock_publish_response = SubgraphPublishResponse {
755
- schema_hash : None ,
750
+ api_schema_hash : None ,
756
751
757
752
composition_errors : vec ! [
758
753
CompositionError {
0 commit comments