Skip to content

CLI Generate Command Does not Generate Additional Properties in CALM Schema #139

@jpgough-ms

Description

@jpgough-ms

Bug Report

Steps to Reproduce:

Create an additional node in a pattern template e.g.

{
  "$schema": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-04/meta/calm.json",
  "$id": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/pattern/api-gateway",
  "title": "API Gateway Pattern",
  "type": "object",
  "properties": {
    "nodes": {
      ...
    },
    "relationships": {
     .... 
    },
    "custom-pattern-information" : {
     ...
    }
  },
  "required": [
    "nodes",
    "relationships",
    "custom-pattern-information"
  ]
}

Running the generate command will not add an object for custom-pattern-information

Expected Result:

All properties appear in the pattern instantiation.

Perhaps a good second step to help us discover any strange bugs or possible issues in a pattern would be to run the validate command against the produced pattern instantiation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcliAffects `cli` code

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions