plone / plone/plone.restapi

Serializing value that has a vocabulary - no json schema compatible

Open
#774 2 comments 0 reactions 2 assignees View on GitHub

@tisto is already working on this.

Since Jun 24, 2019.

Dominant language
Python
Stars
109
Forks
107
Avg merge
2d 3h
Merged PRs (30d)
4

Description

Right now with the changes on the API v4 a serialization of a field that has a vocabualry serializes a value that does not match json schema.


JSON Serialization:
  {
    field: { 'title': 'Title', 'token': '0'}
  }

JSON Schema serialization:
  {
    field: { 'type': 'string'}
  }

from : https://plonerestapi.readthedocs.io/en/latest/upgrade-guide.html#serialization-and-deserialization-of-fields-with-vocabularies

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.