Skip to Main Content
InterSystems Ideas

Have an idea, suggestion, or something that doesn’t work as expected in InterSystems products or services? Share it here on the InterSystems Ideas Portal.

The Ideas Portal is where community members can propose improvements, report bugs, and help influence the product roadmap across InterSystems products and the overall developer experience. 22% of submitted ideas are implemented by InterSystems or members of the Developer Community.

💡 Ideas and bugs are both welcome, no matter how big or small. You can submit feature requests, usability improvements, workflow suggestions, and bug reports. Whether you’re an experienced expert or just getting started, your fresh perspective is valuable.

🛠️ About bugs and fixes. If you have access to InterSystems WRC, please submit bugs there for immediate action. Bug reports submitted through the Ideas Portal are reviewed and tracked, but do not guarantee immediate resolution.

Start by sharing what could be better - the community and our teams will help take it from there.

Status Done by Community
Created by Ashok Kumar T
Created on Jul 2, 2025

Enable Schema Validation for REST APIs Using Swagger Definitions

Enforce Automatic schema validation for Spec-First REST implementations

1️⃣ Description of the idea

Enable automatic schema validation of incoming request bodies in REST APIs defined using Swagger/OpenAPI 2.0 when the request body is declared in the parameters section. The REST framework should automatically validate incoming JSON payloads against the specified schema and return a 422 Unprocessable Entity response if validation fails.

eg: Set status = ##class(%REST.Impl).SchemaValidation("json", schema, payload)

2️⃣ Who is the target audience?

API developers using OpenAPI 2.0 with InterSystems REST framework

Backend developers needing structured, contract-based validation

QA teams validating conformance to API specs

3️⃣ What problem does it solve?

Payloads are validated as defined in the OpenAPI spec

Invalid data is caught early

API behavior aligns with documentation

4️⃣ How does this impact the efficiency, stability, reliability, etc., of the product?

Efficiency: Reduces boilerplate code for validating API input/output

Stability: Ensures data conforms to expected structure before further processing

Reliability: Improves data quality and error handling

5️⃣ Provide a specific use case or scenario that illustrates how this idea could be used in practice

Validation must be implemented manually in ObjectScript, leading to redundant and error-prone code. With Native JSON Schema Validator The developer simply writes Clear, declarative validation. Safer, more predictable input handling and it helps Rapid API development with built-in schema support

  • ADMIN RESPONSE
    Dec 26, 2025

    Thank you for submitting the idea.

    This idea was implemented by Developer Community member(s). Please check the solution in the comments.

  • Admin
    Irene Mikhailova
    Dec 26, 2025

    @Guest thank you for implementing this idea.

    🖥 Download Ashok's app here: iris-fastjsonschema

  • Admin
    Raj Singh
    Nov 5, 2025

    We are soon releasing an open source library for OpenAPI v3 support. Addressing this idea makes sense in the context of that project, so look for an announcement soon.