diff --git a/core/src/test/java/org/openapitools/openapidiff/core/NestedSchemaRefTest.java b/core/src/test/java/org/openapitools/openapidiff/core/NestedSchemaRefTest.java
new file mode 100644
index 00000000..c512b788
--- /dev/null
+++ b/core/src/test/java/org/openapitools/openapidiff/core/NestedSchemaRefTest.java
@@ -0,0 +1,15 @@
+package org.openapitools.openapidiff.core;
+
+import static org.openapitools.openapidiff.core.TestUtils.assertOpenApiAreEquals;
+
+import org.junit.jupiter.api.Test;
+
+public class NestedSchemaRefTest {
+
+  private final String OPENAPI_DOC1 = "nested_schema_ref_1.yaml";
+
+  @Test
+  public void shouldNotThrowErrorsForNestedRefs() {
+    assertOpenApiAreEquals(OPENAPI_DOC1, OPENAPI_DOC1);
+  }
+}
diff --git a/core/src/test/resources/nested_schema_ref_1.yaml b/core/src/test/resources/nested_schema_ref_1.yaml
new file mode 100644
index 00000000..344d4736
--- /dev/null
+++ b/core/src/test/resources/nested_schema_ref_1.yaml
@@ -0,0 +1,44 @@
+openapi: 3.0.1
+info:
+  title: Service
+  description: test
+  version: test
+  contact:
+    name: test
+    url: 'test'
+servers:
+  - url: 'localhost'
+paths:
+  /feature:
+    get:
+      summary: Get feature state
+      operationId: feature
+      description: Gets feature
+      parameters:
+        - name: feature
+          in: query
+          schema:
+            $ref: '#/components/schemas/Feature/properties/feature'
+          required: true
+      responses:
+        '200':
+          description: Found feature
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Feature'
+components:
+  schemas:
+    Feature:
+      type: object
+      properties:
+        feature:
+          type: string
+          enum:
+            - alpha
+            - beta
+        value:
+          type: boolean
+      required:
+        - feature
+        - value