UNPKG

ngx-json-schema-viewer

Version:
25 lines (24 loc) 1.41 kB
import { InjectionToken } from '@angular/core'; import * as i0 from "@angular/core"; export type CheckKey = "nullable" | "deprecated" | "readOnly" | "writeOnly" | "enum" | "stringLength" | "objectProperties" | "no-extra-properties" | "arrayItems" | "arrayContains" | "no-extra-items" | "number-range" | "pattern" | "multipleOf" | "uniqueItems" | "default" | "const" | "examples" | "contentMediaType" | "contentEncoding" | "contentSchema"; export type JSVOptions = { /** * Should we display "examples" ? * @default false */ showExamples: boolean; /** * To overwrite the order to display qualifier messages * @default ["nullable","deprecated","readOnly","writeOnly","enum","stringLength","objectProperties","no-extra-properties","arrayItems","arrayContains","no-extra-items","number-range","pattern","multipleOf","uniqueItems","contentEncoding","contentMediaType","contentSchema","default","const","examples"] */ qualifierMessagesOrder: CheckKey[]; }; export declare const JSV_OPTIONS: InjectionToken<Partial<JSVOptions>>; export declare class JSVOptionsService { private options; constructor(userOptions: Partial<JSVOptions>); setOptions(userOptions?: Partial<JSVOptions>): void; getOptions(): JSVOptions; static ɵfac: i0.ɵɵFactoryDeclaration<JSVOptionsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<JSVOptionsService>; }