mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-23 17:39:59 +00:00
15 lines
379 B
TypeScript
15 lines
379 B
TypeScript
import { IFunctionRouteHandler } from '@datahub/utils/types/vendor/ember-cli-mirage-deprecated';
|
|
|
|
const getDatasetSchema = function(this: IFunctionRouteHandler, { columns }: { columns: any }) {
|
|
return {
|
|
schema: {
|
|
columns: this.serialize(columns.all()),
|
|
schemaless: false,
|
|
keySchema: null,
|
|
rawSchema: '{}'
|
|
}
|
|
};
|
|
};
|
|
|
|
export { getDatasetSchema };
|