pagination
This commit is contained in:
@@ -152,6 +152,8 @@ export async function loadConfigFromOpenApi(baseUrl: string): Promise<AppConfig>
|
||||
|
||||
const fields = parseSchemaFields(schema, name, schemaToResourceMap);
|
||||
|
||||
const resourceOverride = configuration[name] || {};
|
||||
|
||||
resources.push({
|
||||
name,
|
||||
label: schema.title || label,
|
||||
@@ -159,6 +161,7 @@ export async function loadConfigFromOpenApi(baseUrl: string): Promise<AppConfig>
|
||||
endpoint: listPath,
|
||||
primaryKey: "id", // Strict default, no heuristics
|
||||
fields,
|
||||
pagination: resourceOverride.pagination,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user