Skip to content

Implement semantic model document validation #5205

Description

@flyrain

Is your feature request related to a problem? Please describe.

PR #4961 introduces the SemanticDocumentValidator interface, but intentionally defers the concrete validation implementation.

This issue tracks implementing write time validation for Apache Ossie semantic model documents.

Scope

Implement a concrete SemanticDocumentValidator that:

  1. Validates semantic model documents against the Apache Ossie JSON Schema.
  2. Enforces configurable document size limits.
  3. Returns clear client errors for malformed or invalid documents.
  4. Integrates validation into semantic model create and update operations.
  5. Adds unit and integration tests covering valid documents, schema violations, malformed input, and size limit violations.

Additional considerations

The implementation should avoid network access during validation and should package or otherwise reliably load the supported schema version.

We should also define how schema versions are selected and how compatibility will be handled as Apache Ossie evolves.

Related review discussion: #4961 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions