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

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

Closed
SafinWasi opened this issue Jan 3, 2025 · 2 comments · Fixed by #10549
Closed

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

SafinWasi opened this issue Jan 3, 2025 · 2 comments · Fixed by #10549
Assignees
Labels
comp-jans-cedarling Touching folder /jans-cedarling kind-bug Issue or PR is a bug in existing functionality
Milestone

Comments

@SafinWasi
Copy link
Contributor

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

@mo-auto mo-auto added comp-jans-cedarling Touching folder /jans-cedarling kind-bug Issue or PR is a bug in existing functionality labels Jan 3, 2025
@olehbozhok
Copy link
Contributor

We need to check it again after implementing #10513

@rmarinn
Copy link
Contributor

rmarinn commented Jan 5, 2025

this doesn't seem to be an issue anymore in PR #10549.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-cedarling Touching folder /jans-cedarling kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
5 participants