2.0 schemas without the type keyword are incorrectly converted to a ObjectSchema. For example, consider the following OAS 2.0 document:
swagger: '2.0'
info:
title: AnyType test
version: '1.0.0'
paths: {}
definitions:
Foo:
type: object
properties:
p1:
type: object
p2:
description: test
Property p1 is an object, which is represented as a ObjectSchema. Property p2 does not have the type keyword specified, hence its value can be anything. It should be modeled an instance of the Schema class with the type property set to the null value. Currently it is modeled as an instance of ObjectSchema and the type property is set to object.