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

fix: serialize array output and logs #3040

Merged
merged 3 commits into from
Jul 29, 2024
Merged

Commits on Jul 29, 2024

  1. refactor: improve recursive serialization function

    Refactor the `recursive_serialize_or_str` function in the `schema.py` file to improve its readability and maintainability. The function now uses a try-except block to handle exceptions and returns a string representation of the object if an exception occurs. This ensures that the function always returns a string, preventing any unexpected errors. Additionally, the function now includes additional checks for different object types, such as dictionaries, lists, and instances of `BaseModel`. These checks ensure that the function correctly serializes complex objects and avoids any potential issues. Overall, this refactoring improves the code quality and reliability of the `recursive_serialize_or_str` function.
    ogabrielluiz committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    51a7ae7 View commit details
    Browse the repository at this point in the history
  2. feat(artifact.py): add support for recursive serialization of items i…

    …n ARRAY artifact type to ensure consistent data handling
    ogabrielluiz committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    c10574d View commit details
    Browse the repository at this point in the history
  3. feat(schema.py): add support for serializing arrays in build_output_l…

    …ogs function to handle LogType.ARRAY case
    ogabrielluiz committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    9a9c7a3 View commit details
    Browse the repository at this point in the history