1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { isObject, has, every } from 'lodash/fp';
7 export interface Vocabulary {
9 tags: Record<string, Tag>;
12 export interface Tag {
17 const VOCABULARY_VALIDATORS = [
23 export const isVocabulary = (value: any) =>
24 every(validator => validator(value), VOCABULARY_VALIDATORS);