-
Notifications
You must be signed in to change notification settings - Fork 270
Description
Here is an example of a security object. Reading and writing this example fails to produce a valid OpenAPI.
openapi: 3.0
info:
version: 2.0.0
title: hello world
paths:
/:
get:
responses:
'200':
description: OK
security:
- ReferenceObject: []
components:
securitySchemes:
ReferenceObject:
$ref: 'external.yaml#/components/securitySchemes/RealObject'
RealObject:
type: http
scheme: basic
A schema component that is reference object also fails for different reasons. In the output OpoenAPI, the transitive reference is lost and the inline reference points directly to the "realObject" instead of the "referenceObject".
openapi: 3.0
info:
version: 2.0.0
title: hello world
paths:
/:
get:
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ReferenceObject'
components:
schemas:
ReferenceObject:
$ref: '#/components/schemas/RealObject'
RealObject:
type: object
properties:
name:
type: string
Because of these bugs we need to revert PR #1491