Skip to content

feat: support rendering JSON dir lists#588

Draft
Herrtian wants to merge 1 commit into
fastify:mainfrom
Herrtian:codex/render-json-dir-list
Draft

feat: support rendering JSON dir lists#588
Herrtian wants to merge 1 commit into
fastify:mainfrom
Herrtian:codex/render-json-dir-list

Conversation

@Herrtian

Copy link
Copy Markdown

Summary

  • allow JSON directory listings to use list.render when the list is configured for JSON/default JSON
  • pass the selected html/json format to render callbacks
  • update docs, runtime tests, and TypeScript coverage

Fixes #221

Testing

  • node --test --test-name-pattern "dir list json format - render|json format with url parameter format|html format with url parameter format" test\dir-list.test.js
  • npm.cmd run lint
  • npm.cmd run test:typescript

Note: npm.cmd run test:unit was not clean on this Windows checkout because existing symlink fixtures are checked out as regular files locally (should follow symbolic link without wildcard, plus dir-list expectations including no-link).

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.

Have the render function for dirlist work for json as well

1 participant