diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 611906902..0a4ca1652 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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 @@ -187,4 +190,4 @@ jobs: # if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/js + publish_dir: ./docs diff --git a/dist/js/utils/ajv.js b/dist/js/utils/ajv.js index 5850407cb..dc836e797 100644 --- a/dist/js/utils/ajv.js +++ b/dist/js/utils/ajv.js @@ -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) => { @@ -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;