lalcebo / json-schema

JSON Schema Collections
MIT License
16 stars 28 forks source link

serverless schema does not support ${} everywhere #133

Closed gildas closed 1 year ago

gildas commented 1 year ago

In many places, when we use $(), vscode complains about errors since reference.json does not have support for this.

Example:

resources:
  Resources:
    Bucket:
      Properties:
        BucketName: ${self:custom.bucketName}
KillDozerX2 commented 1 year ago

@gildas we're aware of this issue and tooling is in the works for this. The big issue here is if we start supporting them through the schema directly, then we end up in a situation that doesn't allow us maintain the original schema. The preferred way would be a plugin or extension that evaluates variable reference and matches that agains the schema. I'm in talks with the maintainer of the VSCode extension to figure out a way of doing this. I will keep this issue open until something gets figured out.

gildas commented 1 year ago

Thanks a lot!

KillDozerX2 commented 1 year ago

You're welcome

KillDozerX2 commented 1 year ago

Let's move this to #50, since it's a duplicate!