Skip to content

[ENHANCEMENT] Implement Observations and actions in Pydantic #182

@burtenshaw

Description

@burtenshaw

Observations and actions are currently defined as dataclasses. In general, it's recommend to use Pydantic here. The main benefit is that since the http env is based on Pydantic, we would have auto-validation + auto-generated docs.

Hopefully it's just a drop-in replacement (+update existing envs). It happened to me to pass incorrect data which resulted in HTTP 500, which is not great UX. Other advantage of Pydantic is to generate a jsonschema which could be reused in the web interface to create a form.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions