openapi-examples-validator
Version:
Validates embedded examples in OpenAPI-JSONs
7 lines (6 loc) • 359 B
TypeScript
/**
* Sets all properties of each object to required
* @param {Object} openApiSpec The to-be-modified schema
* @param {Array.<String>} [examplePaths=[]] The paths to the examples, which's content must not be modified
*/
export function setAllPropertiesRequired(openApiSpec: Object, examplePaths?: Array<string>): void;