Skip to content

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

Description

@kyletinsley

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues describing a bug or pull requests fixing a bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions