Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Centralize event/object schema checking #8361

@ShadowJonathan

Description

@ShadowJonathan

Description:

A simple internal enhancement/feature request;

  1. create a internal module that houses valid spec-schema for events (in the form of python objects or classes)
  2. ...with additional logic embedded to "soft-adjust" or plain fail when incoming objects does not (strictly) match the schema
  3. then adjust internal mechanisms to validate incoming (dirty) objects based on that
    • do the same with objects from the database, before using these.

Outgoing events/objects should use these classes to ensure their constructed format is automatically sterilised to the right schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Validation500 (mostly) errors due to lack of event/parameter validation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions