mirror of https://github.com/ErsatzTV/ErsatzTV.git
Browse Source
Update Startup.cs OpenAPI configuration to handle deeply nested types:
- Add CreateSchemaReferenceId callback to use simple type names,
reducing schema complexity and improving readability
- Increase JsonSerializerOptions.MaxDepth to 256 to accommodate
complex nested ViewModels during schema generation
- Change OpenAPI endpoint path to /api/openapi/{documentName}.json
to avoid conflicts with static files in wwwroot/openapi/
These changes allow runtime OpenAPI generation to complete successfully
for all 164 API endpoints without hitting depth limits or memory issues.
Note: Runtime generation requires ~4GB RAM due to complex schema
processing. Static files are still served for production use.
pull/2735/head
1 changed files with 17 additions and 6 deletions
Loading…
Reference in new issue