Skip to content

Model Descriptor reports BigDecimal constraint weights are type: object with a schema reference to a non-existing type #2455

Description

@rsynek

Example:

{
        "id": "minimizeTravelTimeWeight",
        "name": "minimizeTravelTimeWeight",
        "kind": "WEIGHT",
        "type": "OBJECT",
        "schemaTypeRef": "BigDecimal",
        "constraintNameRef": "Minimize travel time"
      }

Which is misleading, as the BigDecimal weight should serialize to JSON as a number.

Expected:

{
        "id": "minimizeTravelTimeWeight",
        "name": "minimizeTravelTimeWeight",
        "kind": "WEIGHT",
        "type": "number",
        "constraintNameRef": "Minimize travel time"
      }

Metadata

Metadata

Assignees

Labels

component/serviceIssues related to timefold-solver-service components

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions