-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(radiance-modifier): update ModifierBase
This is a change merely to fix the issue for generating the OpenAPI docs with inheritance. From Pydantic point of view the code is good as is but it's not the case for generating the schema with inheritance. For some mysterious reason the `update_forward_ref` for `_REFERENCE_UNION_MODIFIERS` doesn't get triggered in `ModifierBase` class when creating the subclasses. Moving the fields that are dependent on `_REFERENCE_UNION_MODIFIERS` to the subclasses resolves the issue. I know that this is adding some code duplication but it fixes the documentation issue for now. I'm willing to spend more time in the near future to find a better fix. resolves #102
- Loading branch information
1 parent
a0a51e4
commit 8da64bb
Showing
2 changed files
with
67 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters