I added the addSchemaProperties method that will traverse each schema's nested properties recursively and add it to the v. With this, properties should be reference-able no matter how deep they are in their schema definitions.
It also takes into account:
the combiner keywords oneOf, allOf, and anyOf, which should be reference-able as #/components/schemas/User/properties/data/oneOf/1/properties/bar.
items of an array type, which should be reference-able as #/components/schemas/User/properties/list/items/properties/baz.
Hello!
I am opening this PR to add the ability to validate schemas that reference properties of object schema definitions.
Given
The Problem
Currently when a request is made, the validation responds that it cannot resolve the following references:
The Solution
I added the addSchemaProperties method that will traverse each schema's nested properties recursively and add it to the v. With this, properties should be reference-able no matter how deep they are in their schema definitions.
It also takes into account:
oneOf
,allOf
, andanyOf
, which should be reference-able as#/components/schemas/User/properties/data/oneOf/1/properties/bar
.items
of an array type, which should be reference-able as#/components/schemas/User/properties/list/items/properties/baz
.Regards, @zishone