mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 10:49:00 +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 }; |