Schema.NET icon indicating copy to clipboard operation
Schema.NET copied to clipboard

Vehicle.Transmission and Vehicle.FuelType don't support QualitativeValue

Open kyletinsley opened this issue 1 year ago • 0 comments

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

kyletinsley avatar Oct 07 '24 09:10 kyletinsley