William Cheng 6d10e80916
[normalizer] fix schemas incorrectly skipped (#18297)
* fix circular reference check in normalizer

* add new files

* fix
2024-04-05 13:55:22 +08:00

52 lines
1006 B
Plaintext

openapi: 3.1.0
info:
title: ""
version: ""
paths:
/user/getInfo:
get:
operationId: getUserInfo
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/Bar'
description: |
OK
security:
- Session: []
x-accepts: application/json
components:
schemas:
Foo:
type: object
required:
- arrayOfStrings
properties:
arrayOfStrings:
type: array
items:
type: string
Bar:
allOf:
- $ref: '#/components/schemas/Foo'
Hello:
type: object
properties:
arrayFooOne:
type: array
items:
$ref: '#/components/schemas/Foo'
arrayFooTwo:
type: array
items:
$ref: '#/components/schemas/Foo'
arrayFooThree:
type: array
items:
$ref: '#/components/schemas/Foo'