Skip to content

Unknown MetaAndTemplateFields in Golang #90

Open

Description

@Milage

Description

Generated golang code has a reference to MetaAndTemplateFields for the ContractualProduct type

type ContractualProduct struct {
  /**
   * The economic terms associated with a contractual product, i.e. the set of features that are price-forming.
   */
  EconomicTerms EconomicTerms;
  Meta MetaAndTemplateFields;
  /**
   * The product identification value(s) that might be associated with a contractual product. The CDM provides the ability to associate several product identification methods with a product.
   */
  ProductIdentification ProductIdentification;
  /**
   * The product taxonomy value(s) associated with a contractual product.
   */
  ProductTaxonomy []ProductTaxonomy;
}

but this is not generated in the org_isda_cdm_metafields package.

A fix would be to add:

		type MetaAndTemplateFields struct {
			Id string;
			Key string;
			Reference string;
			Scheme string;
			GlobalKey string;
			ExternalKey string;
		}

to GolangMetaFieldGenerator

Activity

  1. Milage commented on Apr 12, 2021

    @Milage
    Author

    I've submitted PR #91 but don't seem to able to link it to this issue.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions