Open
Description
Bug
The local refs to another schema inside a path definition is not resolved using ResolverFully
. This types of refs are discouraged, but they can be done according to spec and docs https://swagger.io/docs/specification/using-ref/
Steps to reproduce
Try to load with setResolveFully true this spec:
openapi: 3.0.0
info:
version: 1.0.0
title: JSON Schemas test spec
license:
name: MIT
paths:
/test1:
get:
operationId: test1
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Person'
responses:
default:
description: "OK"
/test4:
get:
operationId: test4
responses:
default:
description: "OK"
requestBody:
content:
application/json:
schema:
allOf:
- $ref: '#/paths/~1test1/get/requestBody/content/application~1json/schema'
- $ref: '#/components/schemas/Citizen'
components:
schemas:
Person:
type: object
additionalProperties: {}
properties:
name:
type: string
surname:
type: string
required:
- name
- surname
Citizen:
type: object
additionalProperties: {}
properties:
id_card:
type: string
required:
- id_card