Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Resolved inflecting component attributes in OpenAPI SchemaGenerator #1003

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
n2ygk merged 1 commit into django-json-api:master from sha016:openapi-formatting
Nov 11, 2021

Conversation

Copy link
Contributor

@sha016 sha016 commented Oct 27, 2021
edited by sliverc
Loading

Fixes #967

Description of the Change

applied format_field_name to 3 instances of field.field_name and update snapshot

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name in AUTHORS

@sha016 sha016 changed the title (削除) applied format_field_name to 3 instances of field.field_name (削除ここまで) (追記) Resolved inflecting component attributes in OpenAPI SchemaGenerator (追記ここまで) Oct 27, 2021
Copy link
Contributor Author

sha016 commented Oct 27, 2021

Amended commit with flake8. All tests passing on python3.7

Copy link
Member

@sliverc sliverc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this. Your changes look good. The snapshottest seems to have messed up the order of the tests though and therefore the diff is not really readable...

Actually as snapshottest is not really maintained I wanted to switch to a different snapshot tool anyway which will also produce better diff results. So I will do this in another PR and once merged this PR can be rebased.

In the mean time could add yourself to AUTHORS and add a changelog entry? Thanks.

Copy link
Contributor Author

sha016 commented Oct 28, 2021

@sliverc Amended. Can you please label this PR as hacktoberfest-accepted ? Thank you

Copy link
Member

sliverc commented Oct 29, 2021

@sliverc Amended. Can you please label this PR as hacktoberfest-accepted ? Thank you

Sure. Added. I hope to have this merged soon though.

Copy link
Member

@sliverc sliverc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased to master and updated syrupy snapshots... now the snapshot diff is readable... 👍 For me this PR looks good.

@n2ygk As you have a better understanding of the open api schema could you have a look at this PR as well? Thanks.

@sliverc sliverc requested a review from n2ygk November 10, 2021 17:07
Copy link
Contributor

@n2ygk n2ygk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for this.

@n2ygk n2ygk merged commit d025163 into django-json-api:master Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@sliverc sliverc sliverc approved these changes

@n2ygk n2ygk n2ygk approved these changes

+1 more reviewer

@auvipy auvipy auvipy approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Inflect component attributes when using the OpenAPI SchemaGenerator

AltStyle によって変換されたページ (->オリジナル) /