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

Schema to Go code generator #18

Open
ghost opened this issue Jan 11, 2023 · 2 comments · May be fixed by #33
Open

Schema to Go code generator #18

ghost opened this issue Jan 11, 2023 · 2 comments · May be fixed by #33
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jan 11, 2023

Please describe what you would like to see in this project

We need a go:generate code generator that takes an Arcaflow YAML structure loaded using this library (see schema package) and generates Go code (structs, etc) as well as the type definitions in Go code. The result should be something like this and this.

Please describe your use case

Go does not have enough information in its typing system to be able to construct an Arcaflow schema (no annotations). We need the code generator to turn the typing information into usable Go code without duplicated effort.

@ghost ghost added the enhancement New feature or request label Jan 11, 2023
@ghost ghost added this to Arcaflow Jan 11, 2023
@ghost ghost moved this to Blocked in Arcaflow Jan 11, 2023
@ghost ghost moved this from Blocked to Backlog in Arcaflow Jan 11, 2023
@dustinblack dustinblack moved this from Backlog to In Progress in Arcaflow Feb 13, 2023
@josecastillolema
Copy link
Contributor

Validated the skeleton of a working hardcoded setup with the arca-team.
Moving on to the actual parsing.

@josecastillolema
Copy link
Contributor

Splitting the feature into two smaller PRs:

  • PR#1 for the typedef file
  • PR#2 for the shema file

PR#1 submitted for review.

@mfleader mfleader moved this from In Progress to Backlog in Arcaflow May 3, 2023
@dustinblack dustinblack linked a pull request May 15, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

1 participant