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

FIX: openapi schema title should be a string not a tuple #6259

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

bpereto
Copy link
Contributor

@bpereto bpereto commented Oct 19, 2018

Description

Introduced OpenAPI Schema renderer in 8908934 has a bug that converts schema['title'] from string to tuple.

The resulting OpenAPI Schema YAML then contains !!python/tuple, which causes apistar to fail.

       schema:
          description: A unique integer value identifying this thing.
          title: !!python/tuple
          - ID
          type: integer

Copy link
Contributor

@stephenfin stephenfin left a comment

Choose a reason for hiding this comment

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

This whole thing clearly needs a couple of unit tests, but the fix is what I've ended up with locally too.

@tomchristie
Copy link
Member

👀 Thanks.

@tomchristie tomchristie merged commit 5a54f89 into encode:master Nov 28, 2018
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
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