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

Schema claims AWS::Serverless::Api Models object is 'key : string' map #514

Closed
lucianomm opened this issue Oct 24, 2022 · 1 comment
Closed

Comments

@lucianomm
Copy link
Contributor

While on SAM docs it says the object should be of type Map, as shown here:
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-models
The actual schema expects a pattern of 'key : string'

"Models": {
"additionalProperties": true,
"patternProperties": {
"^[a-zA-Z0-9]+$": {
"type": "string"
}
},
"type": "object"
},

image

@lucianomm
Copy link
Contributor Author

The schema I found with the incorrect models object is:
https://github.com/awslabs/goformation/blob/master/schema/sam.schema.json

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

2 participants