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

Consider providing a way to fully specify custom type #21

Open
bendbennett opened this issue Jun 20, 2023 · 0 comments
Open

Consider providing a way to fully specify custom type #21

bendbennett opened this issue Jun 20, 2023 · 0 comments

Comments

@bendbennett
Copy link
Contributor

bendbennett commented Jun 20, 2023

Within the Generator there is currently no way to fully override custom types for lists, maps, objects and sets. For instance:

	case e.List != nil:
		if e.List.CustomType != nil {
			return fmt.Sprintf("%s{\nElemType: %s,\n}", e.List.CustomType.Type, GetElementType(e.List.ElementType))

We may need a way in the specification to ensure that developers can fully specify how this should be created as code since its not guaranteed that the custom type will be implemented with an ElemType field. Similarly with object types.

@bendbennett bendbennett changed the title Consider providing a mechanism Consider providing a way to fully specify custom type Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant