10 lines
327 B
Python
10 lines
327 B
Python
|
|
from pydantic import BaseModel, Field
|
||
|
|
from typing import List, Optional
|
||
|
|
|
||
|
|
|
||
|
|
class ProjectSpec(BaseModel):
|
||
|
|
title: str = Field(default="Projet ARC")
|
||
|
|
description: str
|
||
|
|
requirements: List[str] = Field(default_factory=list)
|
||
|
|
constraints: List[str] = Field(default_factory=list)
|
||
|
|
target_stack: Optional[str] = "Python"
|