Skip to content

Commit

Permalink
updade imput
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnnsrs committed Jul 5, 2024
1 parent 7da9afd commit 63d786e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions fakts/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@
from pydantic import BaseModel, Field
import uuid




class RequirementModel(BaseModel):
service: str
optional: bool = False
description: Optional[str] = None
key: str


@pydantic.input(RequirementModel)
class Requirement:
service: str
optional: bool = False
description: Optional[str] = None
key: str




@pydantic.input(Manifest)
class ManifestInput:
identifier: str
Expand All @@ -17,13 +37,15 @@ class ManifestInput:
class DevelopmentClientInputModel(BaseModel):
manifest: Manifest
composition: str | None = None
requirements: list[RequirementModel] = Field(default_factory=list)



@pydantic.input(DevelopmentClientInputModel)
class DevelopmentClientInput:
manifest: ManifestInput
composition: strawberry.ID | None = None
requirements: list[Requirement]


class ScanBackendInputModel(BaseModel):
Expand Down

0 comments on commit 63d786e

Please sign in to comment.