Skip to content

Separate Model and Interface Templates from the instantianted lists #223

Description

  • add new property to NamespaceType 'modelTemplates' and 'interfaceTemplates'
  • Move model Templates into this new property and out of the 'models' property
  • Move interface Templates into this new property and out of the 'interfaces' property
  • Add new optional property to ModelType/InterfaceType, 'templateType' that references the template used to instantiate the model
  • derivedModels should maybe be seperated with derivedModelTemplates
  • Add a flag includeTemplates in semantic walker
    • When enabled, visit the template in 'templateType' when present
    • mapChildModels should also have an includeTemplates, currently they are always excluded.
  • Validate change in existing emitters and adjust as appropriate (openapi3, cadl-autorest, cadl-rpaas-controller)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions