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

cfn validate fails with ValueError: Expected prefix '', but was 'properties' #1093

Closed
iuliana opened this issue Aug 28, 2024 · 1 comment
Closed

Comments

@iuliana
Copy link

iuliana commented Aug 28, 2024

The issue seems related to: #581

I am running cfn validate on a JSON schema and I am getting the following:

❯ cfn validate
=== Unhandled exception ===
Please report this issue to the team.
Issue tracker: github.com/aws-cloudformation/cloudformation-cli/issues
Please include the log file 'rpdk.log'

Log attached.
rpdk.log

The exact snippet is the following:

"list": {
      "handlerSchema": {
        "properties": {
          "ProductId": {
            "$ref": "#properties/ProductId"
          }
        },
        "required": [
          "ProductId"
        ]
      },
      "permissions": [
        "servicecatalog:ListPortfoliosForProduct"
      ]
    },

I also tried "$ref": "resource-schema.json#properties/ProductId" , tried removing the requiredelement, but I don't know what else to try here. I've seen other examples with similar schemas work, I have no idea what is so special about this one.
I attached the schema too.
aws-servicecatalog-portfolioproductassociation.json

@iuliana
Copy link
Author

iuliana commented Aug 28, 2024

Nevermind ... just noticed the missing /after #.

@iuliana iuliana closed this as completed Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant