Skip to content

Conversation

@Anshukumar123975
Copy link
Contributor

Description

This PR introduces semantic validation tests for concepts under the specifications module. Specifically, it includes tests and corresponding CTO models for the following rules:

CLASS_DECLARATION_001: Property names must not use system-reserved identifiers (e.g., $class)
CLASS_DECLARATION_002: $class field must not be explicitly declared with invalid types
CLASS_DECLARATION_003: Duplicate class names should not exist in the same model
CLASS_DECLARATION_004: A declared super type must exist
CLASS_DECLARATION_005: Identifying fields must correspond to String or String scalar properties
CLASS_DECLARATION_006: Identifying fields must not be optional
CLASS_DECLARATION_007: If a concept is system-identified, its super type must also be system-identified
CLASS_DECLARATION_008: No property should be redefined if it already exists in the super type

Includes:

  1. Valid & invalid .cto model files
  2. Tests using vitest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant