Do not add schema / class name mapping where custom mapping exists (#14984)

* fix #13150 Do not add schema / class name mapping where custom mapping exists

* update test spec

* improve import

* fix import for mapped models

* fix python

* code clean up

* fix dart client import

* fix dart:core import

* better import

* add tests

---------

Co-authored-by: Bernie Schelberg <bernard.schelberg@mywave.ai>
This commit is contained in:
William Cheng
2023-03-24 22:20:04 +08:00
committed by GitHub
parent bde5c10092
commit f5e427ad52
116 changed files with 395 additions and 298 deletions

View File

@@ -1507,6 +1507,9 @@ components:
- $ref: '#/components/schemas/Cat_allOf'
Animal:
discriminator:
mapping:
DOG: '#/components/schemas/Dog'
CAT: '#/components/schemas/Cat'
propertyName: className
properties:
className: