Skip to content

Add Pydantic model for details field in HTTP Exceptions #112

@slangeveld

Description

@slangeveld

Some of the HTTP Exceptions raised by fmu-seetings-api passes a dictionary in the details field in order to send different types of data back to the GUI, e.g.

detail={
"message": "The global config file is not valid at path "
f"{global_config_path}.",
"validation_errors": e.errors(),
},

Make this details field a Pydantic model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions