Add Policy DSL Validator, Schema Exporter, and Simulation Smoke tools
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Docs CI / lint-and-preview (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Docs CI / lint-and-preview (push) Has been cancelled
				
			- Implemented PolicyDslValidator with command-line options for strict mode and JSON output. - Created PolicySchemaExporter to generate JSON schemas for policy-related models. - Developed PolicySimulationSmoke tool to validate policy simulations against expected outcomes. - Added project files and necessary dependencies for each tool. - Ensured proper error handling and usage instructions across tools.
This commit is contained in:
		
							
								
								
									
										17
									
								
								src/StellaOps.Aoc/AocGuardException.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								src/StellaOps.Aoc/AocGuardException.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| using System; | ||||
| using System.Collections.Immutable; | ||||
|  | ||||
| namespace StellaOps.Aoc; | ||||
|  | ||||
| public sealed class AocGuardException : Exception | ||||
| { | ||||
|     public AocGuardException(AocGuardResult result) | ||||
|         : base("AOC guard validation failed.") | ||||
|     { | ||||
|         Result = result ?? throw new ArgumentNullException(nameof(result)); | ||||
|     } | ||||
|  | ||||
|     public AocGuardResult Result { get; } | ||||
|  | ||||
|     public ImmutableArray<AocViolation> Violations => Result.Violations; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user