Function useGetSchemaPayload
- useGetSchemaPayload(schema?): {
notFound: boolean;
schemaHuri: undefined | Huri<{
schema: string;
} & PayloadFields>;
schemaPayload: undefined | null | Promise<WithMeta<SchemaFields & PayloadFields & {
definition: {
$id?: string;
[key: string]: unknown;
};
extends?: string;
name?: string;
schema: "network.xyo.schema";
}, void>>;
xyoError: undefined | SchemaFields & PayloadFields & {
details?: JsonValue;
message?: string;
name?: string;
query?: Lowercase<string>;
schema: "network.xyo.error.module";
sources?: Lowercase<string>[];
};
} Returns {
notFound: boolean;
schemaHuri: undefined | Huri<{
schema: string;
} & PayloadFields>;
schemaPayload: undefined | null | Promise<WithMeta<SchemaFields & PayloadFields & {
definition: {
$id?: string;
[key: string]: unknown;
};
extends?: string;
name?: string;
schema: "network.xyo.schema";
}, void>>;
xyoError: undefined | SchemaFields & PayloadFields & {
details?: JsonValue;
message?: string;
name?: string;
query?: Lowercase<string>;
schema: "network.xyo.error.module";
sources?: Lowercase<string>[];
};
}
notFound: boolean
schemaHuri: undefined | Huri<{
schema: string;
} & PayloadFields>
schemaPayload: undefined | null | Promise<WithMeta<SchemaFields & PayloadFields & {
definition: {
$id?: string;
[key: string]: unknown;
};
extends?: string;
name?: string;
schema: "network.xyo.schema";
}, void>>
xyoError: undefined | SchemaFields & PayloadFields & {
details?: JsonValue;
message?: string;
name?: string;
query?: Lowercase<string>;
schema: "network.xyo.error.module";
sources?: Lowercase<string>[];
}