Skip to content

Conversation

@marshallslee
Copy link
Contributor

@marshallslee marshallslee commented May 24, 2022

Check List

PR 개요

내용을 적어주세요

주요 작업사항

  • 내용을 적어주세요

@marshallslee marshallslee requested a review from humanitas03 May 24, 2022 06:33
Comment on lines 28 to 30
class SignupRequestBodySerializer(UserSerializer, UserProfileSerializer):
def __init__(self):
super(SignupRequestBodySerializer, self).__init__()
Copy link
Contributor

Choose a reason for hiding this comment

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

갠적으로 모델 시리얼라이저 를 다중상속 하지말고, 번거롭더라도 request json필드 그대로 시리얼라이저 그대로 가는걸 선호합니다만,
궁금한게 이렇게 시리얼라이저 적용하고나서 생성되는 Swagger 문서에 RequestBody의 필드가 View 로직에서 request.data 로 받는 필드와 정확하게 매칭이 되나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

시리얼라이저 구현 방식을 바꿔봤어요. 이렇게 했더니 기존 모델에 구애받지 않고 작성할 수 있더라구요

또 이렇게 하니까 request.data로 받는 필드와 매칭이 되더라구요~

image

Comment on lines 136 to 138
CORS_ALLOW_ALL_ORIGINS = True

CORS_ALLOW_CREDENTIALS = True
Copy link
Contributor

Choose a reason for hiding this comment

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

CORS관련 설정이 추가된 사유가 뭘까요?

Copy link
Contributor

Choose a reason for hiding this comment

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

이거 중간에 카카오 인증쪽 호스트 접속 하는 과정에서 cors 때문에 추가하신듯 한데,
React에서 proxy 설정을 지정하면 이슈가 없을듯 해서 일단 이부분은 원복 부탁드릴께요

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