rule-api-form-schema

Community

Enforce robust API form schemas with three schemas.

Authorbtabaska
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Defines and enforces a standardized three-schema pattern for API form schemas to ensure consistent validation, rendering, and rule processing across the codebase.

Core Features & Use Cases

  • Enforces three-schema architecture: FORM_JSON_SCHEMA (validation), FORM_UI_SCHEMA (rendering), FORM_RULE_SCHEMA (pre/post population and custom validation), all co-located and bundled into a static Form instance registered in get_active_forms().
  • Ensures JSON Schema validity using Draft 2020-12 with a custom OUR_VALIDATOR and a check_schema() guard, preventing runtime misconfigurations.
  • Supports non-blocking validation patterns with warnings and aligns with legacy Grants.gov compatibility via declarative XML transform rules.

Quick Start

Create a new API form by defining JSON, UI, and Rule schemas, wrap them in a Form instance, and register it in get_active_forms().

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rule-api-form-schema
Download link: https://github.com/btabaska/simpler-grants-documentation-automation/archive/main.zip#rule-api-form-schema

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.