Skip to content

Commit

Permalink
feat(core/create): adds schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Oct 12, 2019
1 parent d8fe60a commit 50d8573
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/create/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { default as collection } from './collection';
export { default as scope } from './scope';
export { default as schema } from './schema';
export * from './intercepts';
export * from './references';
export * from './services';
Expand Down
8 changes: 8 additions & 0 deletions packages/core/src/create/schema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Schema } from '~/types';

export default function schema(schema: Schema = {}): Schema {
return {
type: schema.type || 'object',
...schema
};
}

0 comments on commit 50d8573

Please sign in to comment.