-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/enum and forward ref support #7
Conversation
fe93df7
to
6ba3584
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor issue in testing, otherwise looks good
@@ -223,7 +280,7 @@ def fn(g: Input) -> Optional[Output]: | |||
|
|||
def test_typed_dict(): | |||
class Input(TypedDict): | |||
x: int | |||
x: "int" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted to test the forward reference being resolved correctly.
Description
Add conversion of enum values to json schema with added unit tests. Also properly resolve any typing that uses string and needs dereferencing.