UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

9 lines 410 B
import { JSONSchema7 } from 'json-schema'; /** * Returns a de-duplicated list of required attribute names from a JSON Schema. * Traverses nested combinators (allOf, anyOf, oneOf). * For: * - allOf: union of required fields */ export default function getRequiredAttributes(jsonSchema: JSONSchema7 | Record<string, unknown> | undefined | null): string[]; //# sourceMappingURL=getRequiredAttributes.d.ts.map