     # @return [Object] context with class JSON Schema definition
     #
     processDefinition: (klass, ctx={}) =>
+        # Set path for class
+        klass.__path = @constructor.absoluteReferencePathForClass(klass.title, ctx)
+
         # Process class rules
         if klass.rules? and klass.rules.length > 0
             @processRules(klass.rules, klass)

#
# @class Postprocessor
#
class Postprocessor
    @supportedRules = ['definition', 'enumeration', 'index', 'attribute', 'relation', 'link']

    #
    # @param [Object] parser
    #
    constructor: (@parser) ->

    #
    # Executes jison parser and converts it's result to JSON Schema

    # @return [Object] JSON Schema
    #
    postprocess: (data) ->
        @cleanRefs()
        @processRules(data, __path: '#')
        @processTypeReferences()

    #
    # Converts enumeration into JSON Schema object definition.
