How to tell that you're working with a CALM file #482
Replies: 2 comments 14 replies
-
Given CALM isn't a single schema, but a base meta schema and then a bunch of additional schemas including custom schemas that a user can provide themselves (patterns, control requirements) what does this actually solve? Aren't you still going to have to look inside the file to figure out what the schema is? |
Beta Was this translation helpful? Give feedback.
-
Despite establishing that we probably could determine if we're working with CALM based on the file contents, I wonder if it's still worth introducing this just as a naming convention anyway. Taking again the trader x example, only someone with experience with CALM could look at this and know that it's an instantiation and not a pattern. If we introduce a naming convention, at least someone who is only familiar with the concepts could look at this and understand what they have. I'm thinking more just from a user experience perspective now |
Beta Was this translation helpful? Give feedback.
-
For the purposes of the VSCode Extension and other tooling, we need a way to know that the a given file is intended to be using CALM. We could look for a reference to the schema, but this doesn't always work given that a CALM instance isn't required to be based on a pattern, and therefore doesn't need to reference any external file at all that we could look for containing 'calm'.
I would propose that we have CALM files include it in their file name, e.g.
api-gateway.calm.json
. It would also be useful to specify a pattern this way, possibly like this -api-gateway.calm-pattern.json
. This gives us a clear convention that we can check for in our tooling to know what we're working with, and in general makes it more obvious to users what kinds of files they have.What do people think of this approach?
Beta Was this translation helpful? Give feedback.
All reactions