Preflight C# generated paths and module owners before writing output.
(
files: List[Path],
import_paths: List[Path],
grpc: bool = False,
)
| 323 | |
| 324 | |
| 325 | def validate_csharp_files( |
| 326 | files: List[Path], |
| 327 | import_paths: List[Path], |
| 328 | grpc: bool = False, |
| 329 | ) -> bool: |
| 330 | """Preflight C# generated paths and module owners before writing output.""" |
| 331 | cache: Dict[Path, Schema] = {} |
| 332 | graph: List[Tuple[Path, Schema]] = [] |
| 333 | for file_path in files: |
| 334 | file_graph = collect_schema_graph(file_path, import_paths, cache, set()) |
| 335 | if file_graph is None: |
| 336 | return False |
| 337 | graph.extend(file_graph) |
| 338 | try: |
| 339 | return validate_csharp_generation(graph, grpc=grpc) |
| 340 | except ValueError as e: |
| 341 | print(f"Error: {e}", file=sys.stderr) |
| 342 | return False |
| 343 | |
| 344 | |
| 345 | def validate_scala_import_packages(graph: List[Tuple[Path, Schema]]) -> bool: |
no test coverage detected