It doesn't ignore and still care about the property!
For example, in the following case:
struct Y;
#[derive(ToSchema)]
struct X {
#[schema(ignore)]
field: Y
}
Y still needs to have ToSchema and PartialSchema implemented.
And I'll be able to see Y object in the final OpenAPI documentation.