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

Fixes snippet version parsing. #197

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Conversation

andrueastman
Copy link
Collaborator

This PR fixes a regression that would prevent snippet block parsing due to failed version lookup as previous versions of APIDoctor would do a best-effort attempt to obtain version for the snippets during generation.

If the version cannot be obtained from the URL, the version is inferred from the file location and a warning will continue to be logged as before for action from the documentation to fixed.

Sample generation at https://dev.azure.com/microsoftgraph/Graph%20Developer%20Experiences/_build/results?buildId=112494&view=results

Related to microsoftgraph/microsoft-graph-devx-api#1477

@andrueastman andrueastman merged commit f404708 into master Apr 12, 2023
@andrueastman andrueastman deleted the andrueastman/snippetGeneration branch April 12, 2023 11:50
@zengin
Copy link
Contributor

zengin commented Apr 14, 2023

Thank you @andrueastman for this fix!

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.

None yet

3 participants