Schema.NET
Schema.NET copied to clipboard
Vehicle.Transmission and Vehicle.FuelType don't support QualitativeValue
Describe the bug
For the Vehicle schema, several properties are not null after deserialization. It appears that the Vehicle schema does not support QualitativeValue properties that also can be Text or URL types. Transmission and FuelType are just two examples.
Steps to reproduce
Deserialize the following as Vehicle:
{
"@context": "http://schema.org",
"@type": "Vehicle",
"@id": "999",
"vehicleTransmission": {
"@type": "QualitativeValue",
"name": "automatic"
}
}
Notice the resulting Vehicle.VehicleTransmission is null.
Expected behaviour
The resulting Vehicle.VehicleTransmission should not be null.
Schema objects
- https://schema.org/Vehicle
- https://schema.org/vehicleTransmission