Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kyletinsley opened this issue Oct 7, 2024 · 0 comments
Labels
bug Issues describing a bug or pull requests fixing a bug.

Comments

@kyletinsley
Copy link

kyletinsley commented Oct 7, 2024

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

@kyletinsley kyletinsley added the bug Issues describing a bug or pull requests fixing a bug. label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues describing a bug or pull requests fixing a bug.
Projects
None yet
Development

No branches or pull requests

1 participant