UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

10 lines (9 loc) 638 B
import { DataSchema } from "./getDataSchema"; /** * Merge two data schemas into one, getting all properties from both schemas to capture optional properties. * If the types are different, only primitive types are merged. * Merging of arrays with objects or objects / arrays with primitive types is not supported. * In this case the first schema is preferred over the second schema because it can already contain multiple merged schemas. * If the types are the same, the properties of the second schema are merged into the first schema. */ export declare function mergeDataSchemas(first: DataSchema, second: DataSchema): DataSchema;