Skip to content

Commit

Permalink
feat(schema): include schema dialect (#2169)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobridge committed Sep 26, 2023
1 parent 8f6ac08 commit a5a0c9d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/types/generate-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
const parse = require('joi-to-json');
const { schema } = require('./schema/index');

const jsonSchema = parse(schema);
const jsonSchema = parse(schema, 'json', {}, { includeSchemaDialect: true });

fs.writeFileSync(
path.join(__dirname, './schema.json'),
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/tap": "^15.0.8",
"ajv": "^8.12.0",
"joi": "^17.6.0",
"joi-to-json": "^4.0.1",
"joi-to-json": "^4.1.0",
"js-yaml": "^4.1.0",
"tap": "^16.3.8",
"ts-node": "^10.9.1",
Expand Down

0 comments on commit a5a0c9d

Please sign in to comment.