Skip to content

Invalid value specified for 'add' operation #188

Discussion options

You must be logged in to vote

Hey @Yunabell-VU,

thanks for your interest in the ModelServer and the EMF.cloud project! 🎉

I assume the Json pointer path you are using ("/input/0/") is either missing a feature name or you need to specify the path to the parent element if you want to add a new Input element to the model.

I can give you an example for the basic coffeemodel example we use in the emfcloud-modelserver project:

{
    "data": {
        "type": "modelserver.patch",
        "data": [
            {
                "op": "add",
                "path": "/workflows/0/nodes",
                "value": {
                    "$type": "http://www.eclipsesource.com/modelserver/example/coffeemodel#//AutomaticTask",
       …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Yunabell-VU
Comment options

@CamilleLetavernier
Comment options

Answer selected by ndoschek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants