Skip to content

Don't always output id in typescript interface #217

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

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

weaverryan
Copy link
Contributor

Q A
Bug fix? yes/no
New feature? no
BC breaks? yes (as far as "generators" go)
Deprecations? no
Tickets none
License MIT
Doc PR not needed

Hi!

With typescript interfaces, an id property is always output, even if the API has no id field. Is this on purpose? It was added originally when the typescript interfaces were added (then modified in #132). Is there a reason id should always be included?

Cheers!

@dunglas dunglas requested a review from soyuka September 2, 2020 17:38
@soyuka soyuka merged commit f7ddabd into api-platform:master Sep 2, 2020
@soyuka
Copy link
Member

soyuka commented Sep 2, 2020

Indeed looks good, thanks @weaverryan I don't see any reason why it should always be included.

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

Successfully merging this pull request may close these issues.

3 participants