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

generate type / spec Go code when spec is nil #12

Open
bradrydzewski opened this issue Aug 16, 2023 · 0 comments
Open

generate type / spec Go code when spec is nil #12

bradrydzewski opened this issue Aug 16, 2023 · 0 comments

Comments

@bradrydzewski
Copy link
Member

abort and ignore types do not have a spec, however, the current Go code generator requires a target spec for all objects. Update the code generation to support this use case and then remove the failure_abort and failure_ignore schemas

oneOf:
- allOf:
  - properties:
      type:
        const: abort
  - properties:
      spec:
        $ref: ./failure_abort.yaml
- allOf:
  - properties:
      type:
        const: ignore
  - properties:
      spec:
        $ref: ./failure_ignore.yaml
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