@classmethod<EOL><INDENT>def get_property_example(cls, property_, nested=None, **kw):<DEDENT>
paths = kw.get('<STR_LIT>', [])<EOL>name = kw.get('<STR_LIT:name>', '<STR_LIT>')<EOL>result = None<EOL>if name and paths:<EOL><INDENT>paths = list(map(lambda path: '<STR_LIT:.>'.join((path, name)), paths))<EOL>result, path = cls._get_custom_example(paths)<EOL>if result is not None and property_['<STR_LIT:type>'] in PRIMITIVE_TYPES:<EOL><INDENT>cls._example_validate(<EOL>path, result, property_['<STR_LIT:type>'], property_['<STR_LIT>'])<EOL>return result<EOL><DEDENT><DEDENT>if SchemaObjects.contains(property_['<STR_LIT:type>']):<EOL><INDENT>schema = SchemaObjects.get(property_['<STR_LIT:type>'])<EOL>if result is not None:<EOL><INDENT>if schema.is_array:<EOL><INDENT>if not isinstance(result, list):<EOL><INDENT>result = [result] * cls.EXAMPLE_ARRAY_ITEMS_COUNT<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if isinstance(result, list):<EOL><INDENT>cls.logger.warning(<EOL>'<STR_LIT>'.format(schema.ref_path))<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>result = cls.get_example_by_schema(schema, **kw)<EOL><DEDENT>if (not result) and schema.nested_schemas:<EOL><INDENT>for _schema_id in schema.nested_schemas:<EOL><INDENT>_schema = SchemaObjects.get(_schema_id)<EOL>if _schema:<EOL><INDENT>if isinstance(_schema, SchemaMapWrapper):<EOL><INDENT>result[_schema.name] = cls.get_example_by_schema(_schema, **kw)<EOL><DEDENT>elif _schema.nested_schemas:<EOL><INDENT>for _schema__id in _schema.nested_schemas:<EOL><INDENT>_schema_ = SchemaObjects.get(_schema__id)<EOL>if isinstance(_schema_, SchemaMapWrapper):<EOL><INDENT>result[_schema.name] = cls.get_example_by_schema(_schema_, **kw)<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>result = cls.get_example_value_for_primitive_type(<EOL>property_['<STR_LIT:type>'],<EOL>property_['<STR_LIT>'],<EOL>property_['<STR_LIT>'],<EOL>**kw<EOL>)<EOL><DEDENT>return result<EOL>
Get example for property

        :param dict property_:
        :param set nested:
        :return: example value