sealcode / sealious

An extensible, declarative node framework
25 stars 2 forks source link

Method PUT doesn't work correctly #235

Closed arkadiusz-wieczorek closed 8 years ago

arkadiusz-wieczorek commented 8 years ago

Method PUT shouldn't be expected a new value for field which before didn't exist.

It's my resource:

{
    "id": "igv5i69ubd",
    "type": "places",
    "body": {
        "description": {
            "summary": "#ala ma #kota #swag wmi",
            "tags": {
                "0": "#ala",
                "1": "#kota",
                "2": "#swag"
            }
        },
        "longitude": 2.22,
        "latitude": 23
    },
    "created_context": {
        "timestamp": 1444813825700,
        "ip": "127.0.0.1",
        "user_id": false
    },
    "last_modified_context": {
        "timestamp": 1444814926846,
        "ip": "127.0.0.1",
        "user_id": false
    }
}

I've received error after sent PUT with new values (latitude, longitude, description):

{
    "data": {
        "category": "`null` is not right category."
    },
    "is_error": true,
    "type": "validation",
    "status_message": "There are problems with some of the provided values."
}
kuba-orlik commented 8 years ago

A fix for this has been applied in 0.6.15. Please check if the problem is resolved, and reopen this issue if necessary

arkadiusz-wieczorek commented 8 years ago

Ok

arkadiusz-wieczorek commented 8 years ago

I've checked this issue, all works fine! :)