You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Baluduvamsi2006 (via GitHub)" <gi...@apache.org> on 2026/03/21 23:14:05 UTC

[PR] feat(poc): add schema form prototype with raw json fallback [apisix-dashboard]

Baluduvamsi2006 opened a new pull request, #3346:
URL: https://github.com/apache/apisix-dashboard/pull/3346

   **Why submit this pull request?**
   
   - [ ] Bugfix
   - [x] New feature provided
   - [ ] Improve performance
   - [ ] Backport patches
   
   **What changes will this PR take into?**
   
   This PR introduces a **prototype (PoC)** for schema-driven plugin configuration in APISIX Dashboard.
   
   ### Summary
   - Added a new **Prototype Schema Form** mode in the plugin editor drawer.
   - Kept existing **Raw JSON (Monaco)** mode as fallback.
   - Added mode switch to toggle between:
     - `Prototype Schema Form`
     - `Raw JSON`
   - Implemented basic schema-to-form rendering support for:
     - `string`, `number/integer`, `boolean`
     - `enum` (select)
     - `array<string>` (tags input)
     - nested `object`
   - Added initial conditional behavior support for:
     - `if/then/else` merge
     - basic `dependencies` (required propagation)
   - Synced prototype form changes to JSON payload so users can verify/edit in Raw JSON mode.
   - Added a safety guard for Monaco diagnostics setup to avoid runtime crashes when `jsonDefaults` is unavailable.
   
   ### Why this approach
   - Demonstrates feasibility of the GSoC schema-form idea with minimal risk.
   - Maintains backward compatibility through JSON fallback.
   - Enables incremental adoption and mentor/community review before full implementation.
   
   ### Manual verification
   - Opened plugin editor drawer.
   - Edited fields in Prototype Schema Form and verified values appear in Raw JSON.
   - Switched back and forth between modes without losing state.
   - Saved plugin config successfully.
   
   **Related issues**
   
   refs #
   
   **Checklist:**
   
   - [x] Did you explain what problem does this PR solve? Or what new features have been added?
   - [ ] Have you added corresponding test cases?
   - [ ] Have you modified the corresponding document?
   - [x] Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(poc): add schema form prototype with raw json fallback [apisix-dashboard]

Posted by "Baluduvamsi2006 (via GitHub)" <gi...@apache.org>.
Baluduvamsi2006 commented on PR #3346:
URL: https://github.com/apache/apisix-dashboard/pull/3346#issuecomment-4148661414

   Closing in favor of aligned approach
   
   Based on discussion with maintainers, I've discovered that PR #3274 already covers the foundational SchemaForm work. Rather than develop this in parallel, I'm pivoting to an **aligned extension strategy**:
   
   - **Reuse** the SchemaForm foundation from #3274
   - **Focus new work** on: form state correctness hardening, edge-case test coverage, production integration patterns, and contributor documentation
   - **Track as GSoC 2026 proposal** (issue #3347) for enhanced scope with dedicated review
   
   This approach eliminates duplication, reduces review burden, and positions the work for stronger community impact. Thanks for the foundational work here—it informed the design direction.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(poc): add schema form prototype with raw json fallback [apisix-dashboard]

Posted by "Baluduvamsi2006 (via GitHub)" <gi...@apache.org>.
Baluduvamsi2006 closed pull request #3346: feat(poc): add schema form prototype with raw json fallback
URL: https://github.com/apache/apisix-dashboard/pull/3346


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org