bcgov / bcgov/entity

COOPS-UI: revisit mixin usage re: JSON validator package

Open
#1,376 0 comments 0 reactions 0 assignees View on GitHub
ENTITY - DO NOT USE
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

## Description:
Using the 'official' decorators, TypeScript components cannot import classic JS mixins (eg, they are not installed / do not run correctly). However, I found this package which may solve this problem: https://github.com/ktsn/vue-typed-mixins

Specifically, it may be possible to import and use the json-schema-validator package using the above mechamism. See ticket #852. If this works then we would gain the ability to import a JSON schema file instead of specifying the schema in code. (It will still be an issue if, say, registered office address requires different validation from director address. It may also still not be possible to resolve referenced schemas.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.