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

Error when saving an entity in a single language #40

Open
baddlan opened this issue Oct 24, 2017 · 1 comment
Open

Error when saving an entity in a single language #40

baddlan opened this issue Oct 24, 2017 · 1 comment
Assignees
Labels

Comments

@baddlan
Copy link

baddlan commented Oct 24, 2017

PUT {{services}}{{environment}}/services/9ed44d24-b2e1-4882-82f9-7e4c2c8bf73d

Request body:

{
  "owner": "BusinessUnit",
  "ownerUuid": "8454c987-cbc5-4a24-ba1a-d420283caabd",
  "slug": "report-pothole",
  "title": {
    "fr": "Signaler un nids de poule"
  },
  "description": {
    "fr": "foobar"
  },
  "presentation": {
    "fr": "Presentation ..."
  },
  "data": {
    "fr": []
  },
  "enabled": true,
  "weight": 1,
  "version": 2
}

Resulting error:

{
    "type": "https://tools.ietf.org/html/rfc2616#section-10",
    "title": "An error occurred",
    "detail": "title[en]: This value should not be blank.\ndescription[en]: This value should not be blank.\npresentation[en]: This value should not be blank.",
    "violations": [
        {
            "propertyPath": "title[en]",
            "message": "This value should not be blank."
        },
        {
            "propertyPath": "description[en]",
            "message": "This value should not be blank."
        },
        {
            "propertyPath": "presentation[en]",
            "message": "This value should not be blank."
        }
    ]
}
@baddlan
Copy link
Author

baddlan commented Nov 20, 2017

This seems to occur when the entity is already saved one language (the one specified in the error message above).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants