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

Schema generator - generate class not resource #159

Closed
Arkowsky opened this issue Feb 13, 2019 · 3 comments
Closed

Schema generator - generate class not resource #159

Arkowsky opened this issue Feb 13, 2019 · 3 comments

Comments

@Arkowsky
Copy link

I have in my schema.yaml file structure like below PostalAddress:

types:
...
  PostalAddress:
    properties:
      addressCountry: { range: Text }
      addressLocality: { range: Text }
      addressRegion: { range: Text }
      postOfficeBoxNumber: { range: Text }
      postalCode: { range: Text }
      streetAddress: { range: Text }
...

after generate I receive:

/**
 * The most generic type of item.
 *
 * @see http://schema.org/Thing Documentation on Schema.org
 *
 * @ORM\Entity
 * @ApiResource(iri="http://schema.org/Thing")
 */
class PickupPoint
{

I don't want to have api resource for that:

image

Is there any way to do this?

@alexey-kov
Copy link

You can mark PostalAddress as abstract: more info here

@Arkowsky
Copy link
Author

Arkowsky commented Dec 2, 2019

Thank you!

@jkabat
Copy link

jkabat commented Nov 28, 2024

I think this solution does not work anymore... what I do is to set operations to [], but still I see GET endpoint... sad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants