issues
search
yeti-platform
/
yeti
Your Everyday Threat Intelligence
https://yeti-platform.io/
Apache License 2.0
1.71k
stars
283
forks
source link
Improve error handling in the API
#1044
Closed
tomchop
closed
5 months ago
tomchop
commented
6 months ago
Additional validation mechanisms:
Give pattern a minimum length, make location optional
Discriminants
When receiving a request, this gives Pydantic a hint on how to differentiate object types when using typing
Union
. This means that validation errors will be only reported for a specific type.
Add a discriminant to entities in Requests
Add a discriminant to indicators in Requests
Add a discriminant to observables in Requests
Not necessary for DFIQ as we're creating objects differently.
Additional validation mechanisms:
Union
. This means that validation errors will be only reported for a specific type.