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

Improve base class support #12

Merged

Conversation

BenjaminPelletier
Copy link
Member

ImplicitDict, prior to this PR, did not deal well with subclasses that required parsing; for instance:

class MySpecialListClass(List[SomeOtherClass]):
    [...]

In this case, the SomeOtherClass items would not be parsed, and jsonschema would not generate schema for fields using the MySpecialListClass type. This PR adds tests that exercise this situation and fixes the issue.

@BenjaminPelletier BenjaminPelletier merged commit a137d9e into interuss:main Nov 9, 2023
6 checks passed
@BenjaminPelletier BenjaminPelletier deleted the fix-inheriting-classes branch November 9, 2023 23:34
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