Layer7-Community / graphman-client

This repository contains a Postman collection, a Node.js CLI application, sample queries for the CLI, and GraphQL schemas for the Graphman API.
Other
7 stars 5 forks source link

v1.3.00 Validation Errors with Gateway 11.1.00 #53

Closed res13 closed 2 months ago

res13 commented 2 months ago

I just downloaded the latest version 1.3.00 and tried to export all entities from my 11.1.00.17707 Gateway and I get these validation errors:

./graphman.sh version
graphman client v1.3.00
  schema v11.1.1
  supported schema(s) [v11.1.1, v11.1.00]
  supported extension(s) [pre-request, post-export, pre-import, multiline-text-diff, policy-code-validator]
  home /home/me/graphman/layer7-graphman-wrapper
  github https://github.com/Layer7-Community/graphman-client
./graphman.sh export --using all --output mybundle.json
[info] exporting from default gateway
[info] unexpected data {
  "errors": [
    {
      "message": "Validation error of type FieldUndefined: Field 'wsdlUrl' in type 'L7Service' is undefined @ 'services/wsdlUrl'",
      "locations": [
        {
          "line": 25,
          "column": 5
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    },
    {
      "message": "Validation error of type FieldUndefined: Field 'wsdlResources' in type 'L7Service' is undefined @ 'services/wsdlResources'",
      "locations": [
        {
          "line": 27,
          "column": 5
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    },
    {
      "message": "Validation error of type FieldUndefined: Field 'auditConfigurations' in type 'Query' is undefined @ 'auditConfigurations'",
      "locations": [
        {
          "line": 124,
          "column": 3
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    },
    {
      "message": "Validation error of type FieldUndefined: Field 'replaceGroupMemberships' in type 'FederatedUser' is undefined @ 'federatedUsers/replaceGroupMemberships'",
      "locations": [
        {
          "line": 234,
          "column": 5
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    },
    {
      "message": "Validation error of type FieldUndefined: Field 'genericEntities' in type 'Query' is undefined @ 'genericEntities'",
      "locations": [
        {
          "line": 240,
          "column": 3
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    },
    {
      "message": "Validation error of type FieldUndefined: Field 'sshPublicKey' in type 'InternalUser' is undefined @ 'internalUsers/sshPublicKey'",
      "locations": [
        {
          "line": 296,
          "column": 5
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    },
    {
      "message": "Validation error of type FieldUndefined: Field 'replaceGroupMemberships' in type 'InternalUser' is undefined @ 'internalUsers/replaceGroupMemberships'",
      "locations": [
        {
          "line": 300,
          "column": 5
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    },
    {
      "message": "Validation error of type FieldUndefined: Field 'roles' in type 'Query' is undefined @ 'roles'",
      "locations": [
        {
          "line": 482,
          "column": 3
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    }
  ]
}
res13 commented 2 months ago

My bad (should have read the documentation) --> Since the default schema version is v11.1.1, I had to set the argument --options.schema=v11.1.00 which solved the issue.