You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following OpenAPI definition, containing YAML Merge keys with anchor references:
openapi: 3.0.0
info:
title: "Merge keys sample"
description: "This is a sample OpenAPI specification with YAML Merge Keys feature used."
version: snapshot
components:
schemas:
SelectionOption: &SelectionOption
type: object
required:
- id
- label
properties:
id:
type: string
nullable: false
description: An internal unique identifier, which should be used for any communication with the backend.
label:
type: string
nullable: false
description: A human-readable name which should be shown to a user instead of the `id`.
readOnly: true
paths:
/foo/bar:
get:
summary: Blah blah
responses:
200:
description: Blah blah
content:
application/json:
schema:
type: object
properties:
foo:
<<: *SelectionOption
description: "This is description of `foo` field"
bar:
<<: *SelectionOption
description: "Here is description of bar field"
If I open this definition in my IntelliJ and then click open in browser button, I get a SwaggerUI page with wrong response schema:
It seems like the Merge key is just ignored in my OpenAPI definition, even though it's handled properly both by editor.swagger.io and by SwaggerUI 3.22.3:
I suppose it could be related to #87 and may be caused by the well-known Jackson limitation.
My environment:
IntelliJ IDEA 2019.2
Swagger plugin v 1.0.27
Google Chrome 70.0.3538.77 (64-bit) for Linux
The text was updated successfully, but these errors were encountered:
lfyuomr-gylo
changed the title
Merge keys are handled incorrectly
Merge keys are handled incorrectly in SwaggerUI view
Aug 2, 2019
Consider the following OpenAPI definition, containing YAML Merge keys with anchor references:
If I open this definition in my IntelliJ and then click
open in browser
button, I get a SwaggerUI page with wrong response schema:It seems like the Merge key is just ignored in my OpenAPI definition, even though it's handled properly both by editor.swagger.io and by
SwaggerUI 3.22.3
:I suppose it could be related to #87 and may be caused by the well-known Jackson limitation.
My environment:
The text was updated successfully, but these errors were encountered: