mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-23 17:49:49 +08:00
use JSONSchema7 instead of JSONSchema4
This commit is contained in:
parent
f2ec51c866
commit
cad320dd1b
@ -1,4 +1,4 @@
|
||||
import { JSONSchema4 } from "json-schema";
|
||||
import { JSONSchema7 } from "json-schema";
|
||||
import { parseVersion } from "./version";
|
||||
import { Metadata } from "./metadata";
|
||||
import { MethodSchema } from "./method";
|
||||
@ -14,9 +14,9 @@ export type Component = {
|
||||
};
|
||||
|
||||
type ComponentSpec = {
|
||||
properties: Array<JSONSchema4 & { name: string }>;
|
||||
properties: Array<JSONSchema7 & { name: string }>;
|
||||
acceptTraits: TraitSchema[];
|
||||
state: JSONSchema4;
|
||||
state: JSONSchema7;
|
||||
methods: MethodSchema[];
|
||||
};
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { JSONSchema4 } from "json-schema";
|
||||
import { JSONSchema7 } from "json-schema";
|
||||
|
||||
export type MethodSchema = {
|
||||
name: string;
|
||||
parameters?: JSONSchema4;
|
||||
parameters?: JSONSchema7;
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { JSONSchema4 } from "json-schema";
|
||||
import { JSONSchema7 } from "json-schema";
|
||||
import { Metadata } from "./metadata";
|
||||
import { MethodSchema } from "./method";
|
||||
import { parseVersion, Version } from "./version";
|
||||
@ -13,8 +13,8 @@ export type Trait = {
|
||||
};
|
||||
|
||||
type TraitSpec = {
|
||||
properties: Array<JSONSchema4 & { name: string }>;
|
||||
state: JSONSchema4;
|
||||
properties: Array<JSONSchema7 & { name: string }>;
|
||||
state: JSONSchema7;
|
||||
methods: MethodSchema[];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user