Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON Schema for AutoRect Recursive 2D Layout Specification #4448

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

belladonnaf
Copy link

Description:

  • This pull request introduces a new JSON Schema file (autorect.schema.json) for the AutoRect JSON specification. The schema defines a recursive structure for a 2D layout system used in UI component design. Key features include:

Recursive Object Structure:

  • Defines an objects array where each object can have nested child objects. Each object includes properties such as id, class (an array of strings), selected (a boolean), childs (recursive array), and selection (a string).

State Management:

  • Provides a detailed states object that captures positional data (e.g., x, y, pct_x, pct_y) for UI elements.

Additional Metadata:

  • Includes fields such as history, various selection-related properties, and a custom_css string to support custom styling.

  • The schema has been validated against the JSON Schema Draft-07 standard and is intended to facilitate easy integration with tools like JSON Schema Validator and IDE extensions. This contribution aims to standardize the format for recursive AutoRect JSON objects, making it accessible for broader adoption and ensuring consistency across implementations.

Copy link
Contributor

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

@hyperupcall
Copy link
Member

Thanks! Looks like CI is failing. You can find more information on adding JSON Schema entries in CONTRIBUTING.md

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.

2 participants