-
Notifications
You must be signed in to change notification settings - Fork 2
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
refactor: use typed patch instance for session updates #500
Conversation
15945ce
to
4550d80
Compare
…session # Conflicts: # components/renku_data_services/users/db.py
Pull Request Test Coverage Report for Build 11680883133Details
💛 - Coveralls |
return str(id) | ||
def serialize_ulid(cls, value: Any) -> Any: | ||
"""Handle ULIDs.""" | ||
if isinstance(value, ULID): |
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.
that's a nice way to handle it 👍 , we might want to add that for the other apispec_base.py's as well
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.
I was thinking that we should have a common apispec_base.py
file because otherwise we have a lot of code fragmentation.
See #485.
The session blueprint is also updated to use the
validated_json()
method for API responses.