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

[WIP] Integrate coreapi v3. #5855

Closed
wants to merge 3 commits into from

Conversation

carltongibson
Copy link
Collaborator

This PR integrates the work from core-api/python-client#156 into DRF.

  • drop coreschema.
  • Swap coreschema for coreapi.typesys.
  • Use encode rather than dump in the renderer.

Apart from the missing render_to_form helper (c.f. core-api/python-client#160) That's about it, for a first pass.

Now, lets see if I got the CI config right for this...

Use this to create a virualenv for testing the integration.

* Update requirements-optionals (for tox)
@carltongibson carltongibson added this to the 3.8 Release milestone Mar 1, 2018
schema = coreschema.Object(properties=properties, required=required)
return mark_safe(coreschema.render_to_form(schema))
schema = typesys.Object(properties=properties, required=required)
return mark_safe(render_to_form(schema))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the missing helper. You'll see I've just blocked in an assert False above for the moment.

@carltongibson carltongibson modified the milestones: 3.8 Release, 3.9 Release Mar 13, 2018
@carltongibson
Copy link
Collaborator Author

Closing in favour of #6119

@carltongibson carltongibson removed this from the 3.9 Release milestone Aug 9, 2018
@carltongibson carltongibson deleted the 38/coreapi branch March 3, 2019 19:19
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