Skip to content

Commit

Permalink
cannot provide json schema for omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
close2code-palm committed Jan 21, 2025
1 parent 2bb388e commit 42c288b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adaptix/_internal/morphing/concrete_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def sentinel_loader(data):
@for_predicate(Omitted)
class OmittedProvider(MorphingProvider):
def _generate_json_schema(self, mediator: Mediator, request: JSONSchemaRequest) -> JSONSchema:
return JSONSchema()
raise CannotProvide

def provide_dumper(self, mediator: Mediator[Dumper], request: DumperRequest) -> Dumper:
return make_sentinel_dumper(Omitted)
Expand Down

0 comments on commit 42c288b

Please sign in to comment.