Spaces:
Runtime error
Runtime error
File size: 472 Bytes
df6c67d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from enum import Enum
from typing import Literal
from pydantic import BaseModel, Field
from inference.enterprise.workflows.entities.base import GraphNone
class CoordinatesSystem(Enum):
OWN = "own"
PARENT = "parent"
class JsonField(BaseModel, GraphNone):
type: Literal["JsonField"]
name: str
selector: str
coordinates_system: CoordinatesSystem = Field(default=CoordinatesSystem.PARENT)
def get_type(self) -> str:
return self.type
|