mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-21 13:47:39 +02:00
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
21 lines
607 B
TypeScript
21 lines
607 B
TypeScript
import type { FromSchema } from 'json-schema-to-ts';
|
|
import { contextFieldSchema } from './context-field-schema';
|
|
import { legalValueSchema } from './legal-value-schema';
|
|
|
|
export const contextFieldsSchema = {
|
|
$id: '#/components/schemas/contextFieldsSchema',
|
|
type: 'array',
|
|
description: 'A list of context fields',
|
|
items: {
|
|
$ref: '#/components/schemas/contextFieldSchema',
|
|
},
|
|
components: {
|
|
schemas: {
|
|
contextFieldSchema,
|
|
legalValueSchema,
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export type ContextFieldsSchema = FromSchema<typeof contextFieldsSchema>;
|