Skip to content

Conversation

@korikuzma
Copy link
Contributor

close #91

@korikuzma korikuzma added the bug Something isn't working label Jul 19, 2024
@korikuzma korikuzma requested a review from ehclark July 19, 2024 15:50
@korikuzma korikuzma self-assigned this Jul 19, 2024
jsstevenson
jsstevenson previously approved these changes Aug 20, 2024
Copy link
Contributor

@jsstevenson jsstevenson left a comment

Choose a reason for hiding this comment

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

I think this fix also lets us revert the model_dump calls in the API responses?

    if location:
        return {"location": location.model_dump(exclude_none=True)}

@korikuzma
Copy link
Contributor Author

I removed my anyvar container, so I didn't test the last commit. Will come back to this later to test and request review afterwards.

Copy link
Contributor

@ehclark ehclark left a comment

Choose a reason for hiding this comment

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

Added an additional change to the response schema to get the unit tests to pass. The responses for the register endpoints should return a model object if the call to model_dump() is removed.

@korikuzma
Copy link
Contributor Author

@ehclark thank you!

@korikuzma korikuzma merged commit e4c112f into main Aug 26, 2024
@korikuzma korikuzma deleted the issue-91 branch August 26, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add back missing response models to openapi.json

4 participants