OneDrive / apidoctor

Application for validating API documentation and generating test cases
Other
40 stars 27 forks source link

Fixes snippet version parsing. #197

Closed andrueastman closed 1 year ago

andrueastman commented 1 year ago

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 https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/1477

zengin commented 1 year ago

Thank you @andrueastman for this fix!