Skip to content

editoast: SearchPayload.object should be an enum #15031

Description

@emersion

Description and goal

Right now it's a String. This is not type-safe: the generated OpenAPI (and TypeScript code) will not complain when passing an invalid object type. This is especially risky when handling cache tags here:

providesTags: (_result, _error, args) =>

Turn SearchPayload.object into an enum with one entry per object type.

Acceptance criteria

.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions