Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Autogenerate JSON Schema and Documentation

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php, typescript

Research direction

Start by comparing the TypeScript generator in packages/playground/blueprints/bin/generate-schema.js with the checked-in public/blueprint-schema.json linked in the issue, then inspect the PHP blueprint source and its step argument definitions. Define how PHP arguments should be represented before implementing generation; done means the PHP schema and documentation are generated from the code and remain up to date.

Written by the indexing model from the issue text.

Description

Architecture documentation

Typescript Blueprints shipped a JSON Schema and documentation generated from the TypeScript source:

https://github.com/WordPress/wordpress-playground/blob/ef1eb3f57ee251ec98f6075ff7e83d22add188e0/packages/playground/blueprints/public/blueprint-schema.json

The PHP version could do the same to ensure the schema and the documentation are always up to date with the code. This may require taking specific design choices, such as shipping steps arguments as classes:

class WriteFileStepArgs implements StepArgs {
	public $file;
	public string $toPath;

	/**
	 * @param $file
	 * @param string $toPath
	 */
	public function __construct( $file, string $toPath ) {
		$this->file   = $file;
		$this->toPath = $toPath;
	}

}
Dominant language
PHP
Stars
61
Forks
21
Avg merge
19h 34m
Merged PRs (30d)
7

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from WordPress/php-toolkit

All issues in WordPress/php-toolkit

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.