fix: discriminator and oneOf title fix

This commit is contained in:
Roman Hotsiy 2019-05-13 00:31:41 +03:00
parent 301ca225ff
commit a3d7d7a32c
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -223,7 +223,7 @@ export class SchemaModel {
if (variant.$ref === undefined) {
continue;
}
const name = JsonPointer.dirName(variant.$ref);
const name = JsonPointer.baseName(variant.$ref);
derived[variant.$ref] = name;
}
}