Example Swagger/OpenAPI definition:
openapi: 3.0.0
info:
title: Test Api
version: '1.0'
paths:
/services:
get:
summary: Returns a list of all available services
operationId: serviceListRequest
tags:
- Services
responses:
'200':
description: An array of services
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
roles:
type: array
items:
type: object
properties:
value:
type: string
$ref:
type: string
display:
type: string
example:
- id: 1244d92f-332e-4eca-90a9-3e7d4627cf7a
name: Licensing groups
roles:
- value: 00000000023459FE
$ref: /http://api.example.org/users/00000000023459FE
display: Jessica Brandenburg

$ref links should not be resolved in examples.
Would be nice to have any workaround for it.
--
Thanks,
Alex
This seems like a change that's okay to make (Example Object value fields don't directly support references).
@webron, any thoughts?
Edit: he said "yeah, it shouldn鈥檛 resolve it."
Thanks for the report @arrcher - my Swagger Client fix for this will be picked up in the next version of Swagger UI 馃帀
Most helpful comment
Thanks for the report @arrcher - my Swagger Client fix for this will be picked up in the next version of Swagger UI 馃帀