Skip to content

Commit

Permalink
Merge pull request #310 from Exabyte-io/update/SOF-7299-1
Browse files Browse the repository at this point in the history
Update/sof 7299 1
  • Loading branch information
timurbazhirov authored Mar 25, 2024
2 parents ec3994d + 8851c2f commit e2e8794
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,16 @@ jobs:
shell: bash -l {0}
run: |
npm install
echo "List build directory ./docs/js"
ls -l docs/js
cp -r dist/js/examples docs
cp -r dist/js/schema docs
cp dist/js/schemas.json docs/schemas.json
echo "List build directory ./docs"
ls -l docs
- name: Generate Directory Listings
uses: jayanta525/github-pages-directory-listing@v4.0.0
with:
FOLDER: docs/js #directory to generate index
FOLDER: docs #directory to generate index

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand All @@ -187,4 +190,4 @@ jobs:
# if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/js
publish_dir: ./docs
4 changes: 4 additions & 0 deletions dist/js/utils/ajv.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateAndClean = exports.validate = exports.getValidator = void 0;
const ajv_1 = __importDefault(require("ajv"));
const ajv_formats_1 = __importDefault(require("ajv-formats"));
const schemaUtils_1 = require("../esse/schemaUtils");
function addAdditionalPropertiesToSchema(schema, additionalProperties = false) {
return (0, schemaUtils_1.mapObjectDeep)(schema, (object) => {
Expand Down Expand Up @@ -37,6 +38,9 @@ const ajvValidatorAndCleanerWithCoercingTypes = new ajv_1.default({
removeAdditional: true,
coerceTypes: true,
});
(0, ajv_formats_1.default)(ajvValidator);
(0, ajv_formats_1.default)(ajvValidatorAndCleaner);
(0, ajv_formats_1.default)(ajvValidatorAndCleanerWithCoercingTypes);
function getAjvInstance({ clean, coerceTypes }) {
if (clean && coerceTypes) {
return ajvValidatorAndCleanerWithCoercingTypes;
Expand Down

0 comments on commit e2e8794

Please sign in to comment.