Page Contents
Home > @loopback/openapi-v3 > jsonOrBooleanToJSON
jsonOrBooleanToJSON() function
Helper function used to interpret boolean values as JSON Schemas. See http://json-schema.org/draft-06/json-schema-release-notes.html
Signature:
export declare function jsonOrBooleanToJSON(jsonOrBool: boolean | JsonSchema): JsonSchema;
Parameters
Parameter | Type | Description |
---|---|---|
jsonOrBool | boolean | JsonSchema | converts boolean values into their representative JSON Schemas |
Returns:
JsonSchema
A JSON Schema document representing the input value.