Skip to content

Commit

Permalink
Fix value with anyof schema
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <jiaweig3@illinois.edu>
  • Loading branch information
tylergu committed Feb 13, 2024
1 parent 757ffb3 commit cfdc2e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions acto/input/value_with_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ def get_value_by_path(self, path: list):

def create_path(self, path: list):
"""Ensures the path exists"""
if len(path) == 0:
return

# XXX: Complicated, no use case yet, let's implement later
raise NotImplementedError
Expand All @@ -438,6 +440,9 @@ def set_value_by_path(self, value, path):
else:
self.store.set_value_by_path(value, path)

def value(self):
return self.store


class ValueWithBasicSchema(ValueWithSchema):
"""Value with schema attached for Number/Integer, Bool, String"""
Expand Down

0 comments on commit cfdc2e9

Please sign in to comment.