Coverage for genschema / node.py: 0%

13 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-14 22:23 +0000

1from enum import Enum, auto 

2from typing import Any 

3 

4 

5class NodeKind(Enum): 

6 SCALAR = auto() 

7 OBJECT = auto() 

8 ARRAY = auto() 

9 UNION = auto() 

10 

11 

12class SchemaNode: 

13 def __init__(self, kind: NodeKind): 

14 self.kind = kind 

15 self.schema: dict[str, Any] = {} 

16 

17 def as_dict(self) -> dict[str, Any]: 

18 return self.schema