1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
openapi: 3.0.0
info:
title: Circular Import with Mixed Prefixes Test
version: 1.0.0
paths: {}
components:
schemas:
# Root model to trigger _internal.py generation
Root:
type: object
properties:
id:
type: string
a_ref:
$ref: '#/components/schemas/common.a.Model'
# common.a namespace - first directory is 'common'
common.a.Model:
type: object
properties:
id:
type: string
b_ref:
$ref: '#/components/schemas/common.b.Model'
# common.b namespace - shares 'common' prefix
common.b.Model:
type: object
properties:
id:
type: string
c_ref:
$ref: '#/components/schemas/common.c.Model'
# common.c namespace - shares 'common' prefix
common.c.Model:
type: object
properties:
id:
type: string
other_ref:
$ref: '#/components/schemas/other.x.Model'
# other.x namespace - different prefix, will trigger break in LCP
other.x.Model:
type: object
properties:
id:
type: string
root_ref:
$ref: '#/components/schemas/Root'
|