Optional
options: IRavageOptionsProtected
Optional
_optionsProtected
_buildBuild example with object type with recursive DFS algorithm on graph with nodes OpenAPIV3.ReferenceObject or OpenAPIV3.SchemaObject
Protected
_genGenerates JSON string with indent for Content block example
Protected
_getGet schema from openapi.components.schemas, if obj
is
OpenAPIV3.SchemaObject it returns obj
, otherwise it search
OpenAPIV3.SchemaObject
Build example and returns Content block with indent
Generated using TypeDoc
ExampleBuilder generates examples from OpenAPIV3.ReferenceObject of OpenAPIV3.SchemaObject with auto detect examples, default value, enum value
if value has example it returns example
if value has default type instead example it returns default value
if value is enum, it returns first possible value
if value is integer returns 0
if value is boolean returns false
if value is string returns "string"