Skip to content

Missing fields in some API models/Open for PRs #47

Description

@andrewrowe-wk

Hello! We use the Anaplan Java Client library and have gotten tons of mileage out of it. Thank you for maintaining it!

One thing I have noticed is that some of the DTOs do not support the full range of fields that get returned by the API. For example, on the ModelData.java we have the following fields:

  • id
  • name
  • currentWorkspaceId
  • memoryUsage
    But the full range of fields if found here https://api.anaplan.com/2/0/objects/model:
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "version": "1.0",
    "title": "model",
    "description": "model",
    "type": "object",
    "name": "models",
    "order": [],
    "properties": {
        "id": {
            "description": "id",
            "type": "string"
        },
        "name": {
            "description": "name",
            "type": "string"
        },
        "activeState": {
            "description": "state",
            "type": "string"
        },
        "currentWorkspaceId": {
            "description": "workspace",
            "type": "string"
        },
        "currentWorkspaceName": {
            "description": "workspace",
            "type": "string"
        },
        "modelUrl": {
            "description": "model url",
            "type": "string"
        },
        "categoryValues": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "description": "Category value Id",
                        "type": "string"
                    },
                    "attribute": {
                        "description": "Category value",
                        "type": "string"
                    },
                    "categoryId": {
                        "description": "Category Id",
                        "type": "string"
                    },
                    "categoryName": {
                        "description": "Category name",
                        "type": {
                            "enum": [
                                "App",
                                "Environment",
                                "Department",
                                "Region",
                                "Planning Cycle"
                            ]
                        }
                    }
                }
            },
            "minItems": 0,
            "maxItems": 5
        },
        "isoCreationDate": {
            "description": "isoCreationDate",
            "type": "string"
        },
        "lastModified": {
            "description": "lastModified",
            "type": "string"
        },
        "lastModifiedByUserGuid": {
            "description": "lastModifiedByUserGuid",
            "type": "string"
        },
        "lastSavedSerialNumber": {
            "description": "lastSavedSerialNumber",
            "type": "string"
        },
        "memoryUsage": {
            "description": "memoryUsage",
            "type": "number"
        },
        "modelTransactionRunning": {
            "description": "modelTransactionRunning",
            "type": "boolean"
        }
    },
    "primaryKey": [
        "id"
    ],
    "foreignKeys": [
        {
            "reference": {
                "datapackage": "https://api.anaplan.com/2/0/objects/user",
                "resource": "user",
                "type": "MANY"
            }
        },
        {
            "reference": {
                "datapackage": "https://api.anaplan.com/2/0/objects/workspace",
                "resource": "workspace",
                "type": "ONE"
            }
        }
    ],
    "bulk": []
}

Do you accept PRs? If I were to add these fields, would it be considered? I have tried using the library and subclassing the things that I need, but it is so extensive, that modifying the original makes the most sense.

Thanks,

Andrew

PS

Is https://artifacts.anaplan-np.net/ still active? I see references to it in the pom.xml, but it looks like a dead site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions