Skip to content

Commit

Permalink
fixed copy on validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnnsrs committed Feb 15, 2023
1 parent 5941b4f commit 5754a97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion koil/composition/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
from pydantic import BaseModel, Field, root_validator

from dataclasses import field
from koil.decorators import koilable
from typing import Optional, TypeVar
from koil.vars import *
Expand Down Expand Up @@ -79,6 +79,9 @@ async def __aexit__(self, exc_type, exc_val, exc_tb):
class Config:
arbitrary_types_allowed = True
extra = "forbid"
copy_on_model_validation = "none"




class Composition(KoiledModel):
Expand Down
2 changes: 1 addition & 1 deletion koil/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def reset(self, token):
@classmethod
def __get_validators__(cls):
# one or more validators may be yielded which will be called in the
# order to validate the input, each validator will receive as an input
# order to validate the input, deach validator will receive as an input
# the value returned from the previous validator
yield cls.validate

Expand Down

0 comments on commit 5754a97

Please sign in to comment.