Open tdrta opened 3 weeks ago
@tdrta
Validation error of type FieldUndefined
Above error is expected if the schema mismatches. Could you please double check the gateway version?
servicesByResolutionPath field is defined since v11.1.00. This is not defined for previous releases.
Below is the gateway version. We did get an early release version of v11.1, which doesn’t line up with the current v11.1 release, and we weren’t able to upgrade or revert our server back to a snapshot of v11.0.
CA Technologies - A Broadcom Company Software Versions
I tried using graphman with another environment that has the current release of v11.1, and I’m getting a different response.
C:\Users\tdrta\Downloads\layer7-graphman-wrapper>.\graphman.bat export --using all --output source-bundle.json [info] exporting from default gateway [info] unexpected graphman http response [info] <?xml version="1.0" encoding="UTF-8"?>
I tried the command ‘.\graphman.bat export --using all --output source-bundle.json’ in our QA environment, which has the gateway version below, and I received the validation error.
CA Technologies - A Broadcom Company Software Versions
C:\Users\tdrta\Downloads\layer7-graphman-wrapper>.\graphman.bat export --using all --output source-bundle.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"
From: graju256 @.> Sent: Friday, August 23, 2024 8:01 AM To: Layer7-Community/graphman-client @.> Cc: Fasone, Erik @.>; Mention @.> Subject: [EXTERNAL] Re: [Layer7-Community/graphman-client] Validation error (Issue #59)
Validation error of type FieldUndefined
Above error is expected if the schema mismatches. Could you please double check the gateway version?
servicesByResolutionPath field is defined since v11.1.00. This is not defined for previous releases.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Layer7-Community/graphman-client/issues/59*issuecomment-2306946947__;Iw!!Fto3Xw!p0222MUMUu_26gqWV4qay2JPZb6OSCn6LBXNtd9JUl3Z0B-6NHQSwzJJM4grPMihiMLJLg9a8Ur0fa9JiuA2Ea_oHA$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AOPGEJXC3B6TJ62WGUKBSKDZS4QBTAVCNFSM6AAAAABM6UZ2M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBWHE2DMOJUG4__;!!Fto3Xw!p0222MUMUu_26gqWV4qay2JPZb6OSCn6LBXNtd9JUl3Z0B-6NHQSwzJJM4grPMihiMLJLg9a8Ur0fa9JiuBuA2AKyg$. You are receiving this because you were mentioned.Message ID: @.**@.>>
@tdrta
11.1.00-17707 seems to be the correct build number for the v11.1.00 release candidate.
Now make sure the options.schema in the graphman.configuration file is set to v11.1.00 and target the above gateway. You shouldn't be seeing any problems.
@tdrta you can also override the schema selection using the CLI arguments
graphman.bat export --using all --output source-bundle.json --options.schema v11.1.00
@tdrta could you please try exporting with --options.schema cli argument.
GRAPHMAN_HOME variable is set to the correct directory Gateway is v11.1.00 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 C:\Users\tdrta\Downloads\layer7-graphman-wrapper\ github https://github.com/Layer7-Community/graphman-client
We use the commands below, and they return an error similar to the one for service:full '"message": "Validation error of type FieldUndefined: Field 'servicesByResolutionPath' in type 'Query' is undefined @ 'servicesByResolutionPath'"'.
.\graphman.bat export --gateway default --using service:full --variables.resolutionPath /sendamq .\graphman.bat export --gateway default --using service --variables.resolutionPath /sendamq .\graphman.bat export --gateway default --using folder:full --variables.folderPath /AMQ
graphman.configuration.example.txt