#\#CIF_2.0
##############################################################################
#                                                                            #
#                 FAULTY DICTIONARY FOR TESTING PURPOSES                     #
#                                                                            #
##############################################################################
data_FAULTY_TYPE_REF_DIC

    _dictionary.title            FAULTY_TYPE_REF_DIC
    _dictionary.class            Reference
    _dictionary.version          0.0.1
    _dictionary.date             2019-01-02
    _dictionary.uri              http://www.faulty.org/faulty_type_ref.dic
    _dictionary.ddl_conformance  3.11.10
    _dictionary.namespace        FaultyDic
    _description.text
;
    This dictionary contains faulty definitions for validator testing purposes.
;
    loop_
    _dictionary_audit.version
    _dictionary_audit.date
    _dictionary_audit.revision
    0.0.1 2017-06-12 'Creating the dictionary'

save_FAULTY_TYPE_REF_PARENT
    _definition.id               FAULTY_TYPE_REF_PARENT
    _definition.scope            Category
    _definition.class            Head
    _definition.update           2017-06-12
    _description.text
;
     This category is parent of all other categories in the FAULTY_TYPE_REF_DIC
     dictionary.
;
    _name.category_id            FAULTY_TYPE_REF_DIC
    _name.object_id              FAULTY_TYPE_REF_PARENT
save_

save_FAULTY_TYPE_REF

    _definition.id               FAULTY_TYPE_REF
    _definition.scope            Category
    _definition.class            Set
    _definition.update           2017-06-12
    _description.text
;
    The category that contains faulty definitions.
;
    _name.category_id            FAULTY_TYPE_REF_PARENT
    _name.object_id              FAULTY_TYPE_REF
save_

save_faulty_type_ref.byReference_item_no_ref
    _definition.id               '_faulty_type_ref.byReference_item_no_ref'
    _definition.scope            Item
    _definition.class            Attribute
    _definition.update           2018-04-09
    _description.common          'faulty byReference item with no reference'
    _description.text
;
    Data item that is of the ByReference content type, but does not have the
    _type.contents_referenced_id data item in its definition
;
    _name.category_id            faulty_type_ref
    _name.object_id              byReference_item_no_ref
    _type.purpose                Key
    _type.source                 Assigned
    _type.container              Single
    _type.contents               byReference
save_

save_faulty_type_ref.byReference_item_incorrect_ref
    _definition.id               '_faulty_type_ref.byReference_item_incorrect_ref'
    _definition.scope            Item
    _definition.class            Attribute
    _definition.update           2018-04-09
    _description.common          'faulty byReference item with incorrect reference'
    _description.text
;
    Data item that is of the ByReference content type, but the data item
    referenced in _type.contents_referenced_id data item is not defined in
    the dictionary.
;
    _name.category_id            faulty_type_ref
    _name.object_id              byReference_item_incorrect_ref
    _type.purpose                Key
    _type.source                 Assigned
    _type.container              Single
    _type.contents               byReference
    _type.contents_referenced_id '_category.non_existent'
save_
