Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/sof 7299 1 #310

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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
Loading