-
Notifications
You must be signed in to change notification settings - Fork 875
Closed
Labels
rest-apiGenerate REST API documentationGenerate REST API documentation
Milestone
Description
Describe the bug
Since this commit (as best I can tell), which is part of release v2.70.1, and is accompanied by the release note "Add type definition to REST API pages," none of our Swagger JSON files will process. This error is thrown for each file:
error ApplyTemplatePreprocessorError: Error transforming model generated from "swagger-file.json" using "RestApi.html.primary.js". To get the detailed raw model, please run docfx with debug mode --debug. Error running Transform function inside template preprocessor: Cannot read property 'forEach' of undefined
To Reproduce
Steps to reproduce the behavior:
- Place Swagger JSON files in a
/restapi
directory - Include
/restapi
in docfx.json - Run
docfx build
Expected behavior
I would expect the Swagger JSON file to be transformed into HTML REST API reference pages. This has been the case for a long time until this release.
Context (please complete the following information):
- OS: Windows
- Docfx version: 2.70.1
Additional context
Thank you for any help!
Metadata
Metadata
Assignees
Labels
rest-apiGenerate REST API documentationGenerate REST API documentation