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

Define yaml configuration structure as WIDL? #8

Open
jsoverson opened this issue Jan 7, 2022 · 0 comments
Open

Define yaml configuration structure as WIDL? #8

jsoverson opened this issue Jan 7, 2022 · 0 comments

Comments

@jsoverson
Copy link
Member

I was looking to create a JSON schema for the configuration files and it would be easy to do if it was defined as WIDL. That way it could be used to codegen the go code, the JSON schema, and documentation while also being a good example for how to use WIDL for use cases outside of waPC guests.

The WIDL is straightforward outside of the config object (code). I'm not sure how to best describe that with the current state of WIDL but @pkedy you would know best.

type WapcConfig {
  schema: string,
  config: {string: any},
  generates: {string: Target}
}

type Target {
  module: string,
  visitorClass: string,
  ifNotExists: boolean,
  config: {string: any}
}
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