feat(api): field-level set_fields 422 body (#28); enum-type SearchHitView.visibility (#38)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 15:32:48 +02:00
parent cd3606c0e9
commit d6dc1c9b57
6 changed files with 111 additions and 22 deletions
+12 -3
View File
@@ -408,6 +408,13 @@ export interface components {
required: boolean;
vocabulary_id?: string | null;
};
/** @description Field-level rejection detail for `set_fields`, so the UI can highlight the field. */
FieldErrorView: {
/** @description Machine code: "unknown" | "type_mismatch" | "unresolved". */
code: string;
/** @description The flexible-field key that was rejected. */
field: string;
};
LabelInput: {
label: string;
lang: string;
@@ -513,7 +520,7 @@ export interface components {
object_name: string;
object_number: string;
snippet?: string | null;
visibility: string;
visibility: components["schemas"]["Visibility"];
};
SearchResultsView: {
/** @description Meilisearch's estimate of the total number of matches. */
@@ -1038,12 +1045,14 @@ export interface operations {
};
content?: never;
};
/** @description Unknown field, type mismatch, or unresolved reference */
/** @description A field was rejected */
422: {
headers: {
[name: string]: unknown;
};
content?: never;
content: {
"application/json": components["schemas"]["FieldErrorView"];
};
};
};
};