Skip to main content

Objects

In schema design, it is often useful to group certain properties together into a single unit for clarity and reuse.
These groups are represented as objects in the Codebricks framework.

Add Object

There are two ways to add an object:

  1. During the modeling of the use case.
  2. Through the Object Management Panel.

Adding an Object During Use Case Modeling

To add an object while modeling a use case:

  1. Open the Use Case details by clicking on an API Use Case on the map.
  2. Navigate to the section where you want to add or edit a property.
  3. Select the type as "object" (See Use Case Schema Editing).
  4. Click the + icon next to the object dropdown.

Codebricks Planner with Add Property from a request open, highlighting the option to add an object.

In the dialog that appears, specify the name of the object and its corresponding value object.
Each object can only have one value object representation.

Codebricks Planner with the Object creation dialog open.

After submitting, your object will be automatically selected for the property.

note

Please ensure that all input fields in the Codebricks Planner only use lowercase letters and spaces.
Special characters are not allowed to ensure a smooth generation experience.

Select Object

To use an object in any schema, follow these steps:

  1. Open the Use Case details by clicking on an API Use Case on the map.
  2. Navigate to the section where you want to add or edit a property.
  3. Select the type as "object" (See Use Case Schema Editing).
  4. Choose the desired object from the dropdown menu.

Codebricks Planner with Add Property from a request open, highlighting the option to select an object.

Manage Objects

To create, edit, or delete objects, use the Object Management Panel:

  1. Open the Use Case details by clicking on any Use Case on the map.
  2. Open the management panel by clicking on the Candy Box icon (Candybox icon).
  3. Navigate to the Objects tab.

Codebricks Planner with Object Management open, showing the option to add new objects.

Here you can add, edit, or delete objects.

warning

You can only delete objects that are not currently used in any Use Case or Value Object.