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

adds inner error description #110

Merged
merged 9 commits into from
Feb 4, 2022
Merged

Conversation

baywet
Copy link
Member

@baywet baywet commented Jan 31, 2022

inserts a description for the inner error type as prepration work for Kiota.

We're not describing the error itself as it's brought in the conversion process by OData conventions.

related microsoft/kiota#411
related microsoft/OpenAPI.NET.OData#167

More reading https://docs.microsoft.com/en-us/graph/errors

(I believe the inner error description is partly wrong, as it doesn't inherit from error according to the odata spec)

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
transforms/csdl/preprocess_csdl.xsl Outdated Show resolved Hide resolved
@baywet baywet requested a review from zengin February 2, 2022 16:05
Copy link
Contributor

@MIchaelMainer MIchaelMainer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new functionality should be optional so that existing use of the transform do not need to be updated.

transforms/csdl/preprocess_csdl.xsl Outdated Show resolved Hide resolved
transforms/csdl/preprocess_csdl.xsl Outdated Show resolved Hide resolved
transforms/csdl/transform.ps1 Outdated Show resolved Hide resolved
transforms/csdl/readme.md Outdated Show resolved Hide resolved
transforms/csdl/transform.ps1 Outdated Show resolved Hide resolved
Co-authored-by: Michael Mainer <MIchaelMainer@users.noreply.github.com>
@baywet baywet requested a review from MIchaelMainer February 2, 2022 18:01
@baywet
Copy link
Member Author

baywet commented Feb 2, 2022

@zengin do you have any idea why the workflow is failing at this point?

Co-authored-by: Mustafa Zengin <muzengin@microsoft.com>
@zengin
Copy link
Contributor

zengin commented Feb 2, 2022

@baywet now the error looks like on how the transform is applied. The rule removes the whole microsoft.graph namespace for some reason.

@baywet
Copy link
Member Author

baywet commented Feb 2, 2022

Maybe the chose tag should wrap around the template one? (not in front of my computer right now)
Or maybe we need and empty else statement?
Gee this brings my back to my SharePoint on prem dev days with search customization. I don't miss it. 😂

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
@baywet
Copy link
Member Author

baywet commented Feb 3, 2022

there, the issue was caused by two things:

  • we already had a template matching edm:Schema[@Namespace='microsoft.graph'] earlier in the doc and they were kind of conflicting
  • the <xsl:apply-templates select="@* | node()"/> needed to be outside of the choose tag

@baywet baywet merged commit 1a8cdc3 into master Feb 4, 2022
@baywet baywet deleted the feature/inner-error-injection branch February 4, 2022 11:57
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

Successfully merging this pull request may close these issues.

3 participants