| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -5,6 +5,7 @@ namespace Darksparrow\AuxiliumSchemaBuilder\SchemaBuilder; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use Darksparrow\AuxiliumSchemaBuilder\Exceptions\SchemaNameUnsetException; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use Darksparrow\AuxiliumSchemaBuilder\Attributes\SchemaDocument; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use Darksparrow\AuxiliumSchemaBuilder\Attributes\SchemaDocumentField; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use JetBrains\PhpStorm\NoReturn; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use ReflectionClass; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					class SchemaBuilder | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -107,4 +108,12 @@ class SchemaBuilder | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return $schema; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    #[NoReturn] public static function RenderSchema(object $targetSchema): void | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        $result = self::GenerateSchema(new $targetSchema()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        header('Content-Type: application/json'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        echo json_encode($result, JSON_PRETTY_PRINT); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        die(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					
  |