Skip to content

fix(jans-cedarling): error during creating entity of type record #10545

@SafinWasi

Description

@SafinWasi

Describe the bug
When creating a resource entity with type record, cedarling throws an error.

Schema of entity:

{
  "shape": {
    "type": "Record",
    "attributes": {
      "header": {
        "type": "Record",
        "attributes": {
          "Accept": {
            "type": "EntityOrCommon",
            "required": false,
            "name": "String"
          }
        }
      },
      "url": {
        "type": "EntityOrCommon",
        "name": "Url"
      }
    }
  }
}

Input:

{
  "header": {
    "Accept": "test"
  },
  "url": {
    "host": "protected.host",
    "path": "/protected",
    "protocol": "http"
  }
}

The following exception is thrown:

"could not create resource entity: could find record/type: Jans::Record"

Expected behavior
I should be able to create a resource entity of type record

Metadata

Metadata

Assignees

Labels

comp-jans-cedarlingTouching folder /jans-cedarlingkind-bugIssue or PR is a bug in existing functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions