Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown MetaAndTemplateFields in Golang #90

Open
Milage opened this issue Apr 12, 2021 · 1 comment
Open

Unknown MetaAndTemplateFields in Golang #90

Milage opened this issue Apr 12, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Milage
Copy link

Milage commented Apr 12, 2021

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

@Milage
Copy link
Author

Milage commented Apr 12, 2021

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

@SimonCockx SimonCockx added the bug Something isn't working label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants