Skip to content
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

Merged
merged 7 commits into from
Jul 2, 2024
Merged

Conversation

rbiseck3
Copy link
Collaborator

@rbiseck3 rbiseck3 commented Jul 1, 2024

Description

Add conversion of enum values to json schema with added unit tests. Also properly resolve any typing that uses string and needs dereferencing.

@rbiseck3 rbiseck3 changed the title feat/enum support feat/enum and forward ref support Jul 1, 2024
Copy link

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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change necessary?

Copy link
Collaborator Author

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.

@rbiseck3 rbiseck3 merged commit b7fb254 into main Jul 2, 2024
3 checks passed
@rbiseck3 rbiseck3 deleted the feat/add-enum-support branch July 2, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants