         )
       )
 
-      it('produces no errors, no warnings, some transactions', ->
-        assert.jsonSchema(compilationResult, schema)
+      it('produces no annotations, some transactions', ->
+        assert.jsonSchema(compilationResult, createCompilationResultSchema(
+          annotations: 0
+          transactions: true
+        ))
       )
     )
   )
 
   describe('When parser unexpectedly provides just error and no API Elements', ->
     compilationResult = undefined
-    schema = createCompilationResultSchema(
-      errors: 1
-      warnings: 0
-      transactions: 0
-    )
     source = '... dummy API description document ...'
     message = '... dummy error message ...'
 

        )
      )

      it('produces no errors, some warnings, some transactions', ->
        assert.jsonSchema(compilationResult, schema)
      )
    )
  )

  describe('When given valid API description', ->
    compilationResult = undefined
    schema = createCompilationResultSchema(
      errors: 0
      warnings: 0
      transactions: true
    )

    fixtures.ordinary.forEachDescribe(({source}) ->
      beforeEach((done) ->

        )
      )

      it('produces some annotations, no transactions', ->
        assert.jsonSchema(compilationResult, createCompilationResultSchema(
          annotations: true
          transactions: 0
        ))
      )
      it('produces some errors', ->
        errors = compilationResult.annotations.filter((annotation) ->
          annotation.type is 'error'
        )
        assert.ok(errors.length)
      )
      it('produces no warnings', ->
        warnings = compilationResult.annotations.filter((annotation) ->
          annotation.type is 'warning'
        )
        assert.deepEqual(warnings, [])
      )
    )
  )

  describe('When given API description with warnings', ->
    compilationResult = undefined

    fixtures.parserWarning.forEachDescribe(({source}) ->
      beforeEach((done) ->
