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

Use fields() instead of attributes #534

Merged
merged 6 commits into from
Jul 24, 2020
Merged

Conversation

nadar
Copy link
Member

@nadar nadar commented Jul 24, 2020

The fields definition returns the actual resource informations

The fields definition returns the actual resource informations
@nadar nadar self-assigned this Jul 24, 2020
@codeclimate
Copy link

codeclimate bot commented Jul 24, 2020

Code Climate has analyzed commit 37c8570 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 47.4% (0.1% change).

View more on Code Climate.

@nadar nadar merged commit 0d77608 into master Jul 24, 2020
@nadar nadar deleted the openapi-fields-vs-attributes branch July 24, 2020 19:16
slowfox089 pushed a commit to slowfox089/luya-module-admin that referenced this pull request Dec 10, 2020
* Use fields() instead of attributes

The fields definition returns the actual resource informations

* Update CHANGELOG.md

* tests

* add tests, keep behavior when fields is empty

* Update ActiveRecordToSchema.php

Co-authored-by: Basil <basil@Trudys-MBP.fritz.box>
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.

1 participant