tests: add failing test case for recursive callback reference

This commit is contained in:
Tristan Cartledge
2023-12-04 10:15:31 +00:00
parent 69ba5b875a
commit 2ff7c59585
4 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
test-callback:
"/test-callback":
$ref: "./min-components.yaml#/components/pathItems/test-callback"

View File

@@ -0,0 +1,9 @@
components:
pathItems:
test-callback:
$ref: "#/components/pathItems/test-callback-2"
test-callback-2:
get:
responses:
"200":
description: OK

View File

@@ -0,0 +1,16 @@
openapi: 3.1.0
info:
title: Test
version: 0.0.1
servers:
- url: https://test.com
paths:
/test:
get:
operationId: test
responses:
"200":
description: OK
callbacks:
test:
$ref: "./min-callbacks.yaml#/test-callback"