synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
19 lines • 746 B
TypeScript
import { EnumeratedValue } from './getEnumeratedValues';
import { FlatTypeInfo } from './getType';
import { JSONSchema7 } from 'json-schema';
export interface SchemaPropertyInfo {
type: FlatTypeInfo | undefined;
isRequired: boolean;
enumeratedValues: EnumeratedValue[] | null;
description?: string;
}
export interface SchemaPropertiesMap {
[propertyName: string]: SchemaPropertyInfo;
}
/**
* Processes a JSON schema once and returns information for all properties
* @param schema The JSON schema to process
* @returns A map of property names to their schema information
*/
export declare function getSchemaPropertiesInfo(schema: JSONSchema7 | null): SchemaPropertiesMap;
//# sourceMappingURL=getSchemaPropertyInfo.d.ts.map