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

feat: get arg type information from schema #57

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

Duologic
Copy link
Member

@Duologic Duologic commented Sep 26, 2023

As an alternative to the type, default and enums, this PR introduces the ability pass along a JSON schema for args (parameters). It has a much richer set of features to validate arguments.

The render output only surfaces type, default and enum fields for now.

This PR also renders the docs (forgot that in #56)

@Duologic Duologic marked this pull request as draft September 26, 2023 07:57
In JSON schema, `type` can be an array if multiple types are allowed.
```

PARAMETERS:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I quite understand why PARAMETERS and Arguments are two sections

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, I followed the suggestion from this issue: #8

Didn't think it through, I gladly discuss that for a bit, I've seen both words in jsonnet docs, not sure about the context.

@Duologic Duologic merged commit 503e5c8 into master Oct 19, 2023
@Duologic Duologic deleted the duologic/args_from_schema branch October 19, 2023 13:07
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

Successfully merging this pull request may close these issues.

2 participants