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

parameter location missing in search yaml #1509

Open
Marsturix opened this issue Oct 19, 2022 · 0 comments
Open

parameter location missing in search yaml #1509

Marsturix opened this issue Oct 19, 2022 · 0 comments

Comments

@Marsturix
Copy link

I used the yaml definitions of the api endpoint to generate the necessary Model Classes. However when the endpoint gets triggered the following error gets thrown

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "location" (class 
com.alfresco.rest.client.search.model.ResultNode), not marked as ignorable (22 known properties: "isLink", "parentId", "isFile", 
"versionComment", "search", "createdByUser", "name", "allowableOperations", "aspectNames", "properties", "isLocked", "archivedAt", 
"isFolder", "content", "id", "nodeType", "path", "modifiedByUser", "createdAt", "modifiedAt", "archivedByUser", "versionLabel"])

meaning the result from the endpoint doesn't match the definition as it looks something like this (optained from the api-explorer):

  {
  "list": {
    "pagination": {
      "count": 1,
      "hasMoreItems": false,
      "totalItems": 1,
      "skipCount": 0,
      "maxItems": 100
    },
    "context": {
      "consistency": {
        "lastTxId": 51
      }
    },
    "entries": [
      {
        "entry": {
          "createdAt": "2022-10-19T11:02:22.343+0000",
          "isFolder": true,
          "search": {
            "score": 1
          },
          "isFile": false,
          "createdByUser": {
            "id": "admin",
            "displayName": "Administrator"
          },
          "modifiedAt": "2022-10-19T11:19:05.384+0000",
          "modifiedByUser": {
            "id": "admin",
            "displayName": "Administrator"
          },
          "name": "TestNode",
  ====>   "location": "nodes",
          "id": "dc437fc4-14dc-3912-8cf2-05ddd18e6869",
          "nodeType": "nodes:test",
          "parentId": "65b49f46-962c-18b8-34ea-893cf460bd8e"
        }
      }
    ]
  }
}

instead of this
alfrescoSearchModel

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

No branches or pull requests

1 participant