We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
API Platform version(s) affected: 3.0.8 Generator: 5.2.0
Description
Enum generation not working for schema.org/OrderStatus Instead OrderStatus becomes a normal Entity
How to reproduce
types: Thing: properties: gender: { range: "https://schema.org/GenderType" } orderStatus: { range: "https://schema.org/OrderStatus" } GenderType: properties: gender: [ ] OrderStatus: properties: orderStatus: [ ]
$ php vendor/bin/schema generate config/schema.yaml
The text was updated successfully, but these errors were encountered:
Probably because OrderStatus is not a direct subclass of Enumeration. The corresponding code is here, do you want to try to fix it?
OrderStatus
Enumeration
schema-generator/src/Schema/Model/Class_.php
Lines 69 to 74 in 8b66b37
Sorry, something went wrong.
Hi alan,
thanks for the very fast reply.
I m going to check if there are any other enumeration classes besides Enumeration and StatusEnumeration and submit a pull request when done.
StatusEnumeration
thanks
No branches or pull requests
API Platform version(s) affected: 3.0.8 Generator: 5.2.0
Description
Enum generation not working for schema.org/OrderStatus
Instead OrderStatus becomes a normal Entity
How to reproduce
$ php vendor/bin/schema generate config/schema.yaml
The text was updated successfully, but these errors were encountered: