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

Converting hologram to drf serializers then generating the open api s… #42

Merged

Conversation

sidpatel13
Copy link
Contributor

@sidpatel13 sidpatel13 commented Sep 27, 2023

instead of converting hologram straight to the open api spec, we convert the serializers to drf serializers and then use those in conjunction with drf spectacular to generate the open api schema. drf spectacular, the package we use to generate the docs tends to understand the drf serializers a lot better.

Checkout the changes using this Loom link

@sidpatel13
Copy link
Contributor Author

Added a loom link showing what got changed as a part of this update

openapi-v2.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@MitchellBarker MitchellBarker left a comment

Choose a reason for hiding this comment

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

Down to approve once this PR goes through (know you just tagged for viz -> and I'm really just commenting so I can drop it from my gh view haha)

Copy link
Contributor

@MitchellBarker MitchellBarker left a comment

Choose a reason for hiding this comment

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

🥳

@sidpatel13 sidpatel13 merged commit ec670c5 into master Oct 31, 2023
3 of 4 checks passed
@sidpatel13 sidpatel13 deleted the spatel/CC-715-use-dynamically-created-drf-serializers branch October 31, 2023 21:31
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