open-api icon indicating copy to clipboard operation
open-api copied to clipboard

[openapi-types] SchemaObject interface definition dont accept oneOf

Open dkMorlok opened this issue 6 years ago • 1 comments

For example when i have this schema:

{
	type: 'object',
	properties: {
		ext_id: { // this is ok, defined type
			type: 'string',
			nullable: true,
		},
		visitor_id: { // this is ok, defined $ref
			$ref: '#/components/schemas/def_visitor_id',
		},
		group_id: { // this is not compatible with SchemaObject
			oneOf: [
				{ type: 'null' },
				{ $ref: '#/components/schemas/def_group_id' },
			]
		},
	}
}

and property dont have type or ref then Type definition dont like it :)

dkMorlok avatar Jan 03 '20 11:01 dkMorlok

prs are welcome

jsdevel avatar Jan 08 '20 17:01 jsdevel