Skip to content

Extract JSON responses into testable files#33

Merged
dannywillems merged 1 commit into
masterfrom
extract-json-examples
Apr 20, 2026
Merged

Extract JSON responses into testable files#33
dannywillems merged 1 commit into
masterfrom
extract-json-examples

Conversation

@dannywillems
Copy link
Copy Markdown
Contributor

Summary

  • Move all inline JSON response examples into examples/api/responses/
  • Include them via the include-code shortcode (same as shell/Python)
  • Add make check-examples-json target (validates with python3 -m json.tool)
  • Add JSON validation step to the python CI job

Files extracted:

  • search_response.json, domain_response.json, hostdetails_response.json
  • subdomains_response.json, l9event_schema.json
  • plugins_list_response.json, plugins_detail_response.json
  • plugins_not_found.json

Test plan

  • CI passes (including new JSON validation)
  • All API pages render JSON responses correctly

Move all JSON response examples from inline markdown blocks into
examples/api/responses/*.json files, included via the include-code
shortcode. Add JSON validation to Makefile and CI.
@dannywillems dannywillems merged commit ef8cdac into master Apr 20, 2026
10 checks passed
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.

1 participant