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
|
openapi: 3.0.0
info:
title: Circular Import with Different Prefixes Test
version: 1.0.0
paths: {}
components:
schemas:
# Root model
Root:
type: object
properties:
id:
type: string
alpha_ref:
$ref: '#/components/schemas/alpha.sub.Model'
# alpha.sub namespace
alpha.sub.Model:
type: object
properties:
id:
type: string
beta_ref:
$ref: '#/components/schemas/beta.sub.Model'
# beta.sub namespace - different prefix from alpha.sub
beta.sub.Model:
type: object
properties:
id:
type: string
gamma_ref:
$ref: '#/components/schemas/gamma.sub.Model'
# gamma.sub namespace
gamma.sub.Model:
type: object
properties:
id:
type: string
root_ref:
$ref: '#/components/schemas/Root'
|