A tool for generating OpenAPI schemas from Mastodon API documentation.
- Parses Mastodon entity files and API method documentation
- Generates OpenAPI 3.1.0 compliant schemas
- Automatic weekly schema updates via GitHub Actions
npm run generate
This will generate an OpenAPI schema at dist/schema.json
based on the latest Mastodon documentation.
npm run validate
npm test
The repository includes a weekly GitHub Actions workflow that:
- Automatically generates a new schema every Sunday at 8:00 AM UTC
- Compares the new schema with the current one
- Creates a pull request if changes are detected
The workflow can also be triggered manually from the GitHub Actions page.