generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Labels
papercutSmall annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a feature requestSmall annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a feature request
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Bug Category
Schemas and Validation
Describe the bug
This error currently report the unqualified name of the missing type when type isn't qualified in the schema source code.
This can be confusing if the type does exist, but in a different namespace.
For example, the error for the following schema is UndeclaredCommonTypes({"id"})
, but id
does exist in the empty namespace (#579 covers updating schema parsing to use this definition). It would be much more clear why this is an issue if the error specified that it couldn't find Demo::id
.
{
"Demo": {
"entityTypes": {
"User": {
"memberOfTypes": [],
"shape": {
"type": "Record",
"attributes": {
"id": { "type": "id" },
}
}
}
},
"actions": {}
},
"": {
"commonTypes": {
"id": {
"type": "String"
},
}
"entityTypes": {},
"actions": {}
}
}
Expected behavior
.
Reproduction steps
.
Code Snippet
// Put your code below this line.
Log output
// Put your output below this line
Additional configuration
No response
Operating System
No response
Additional information and screenshots
No response
Metadata
Metadata
Assignees
Labels
papercutSmall annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a feature requestSmall annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a feature request