Skip to content

Remove required in provider schema#27

Merged
antoineverin merged 3 commits intomainfrom
remove-require
May 16, 2025
Merged

Remove required in provider schema#27
antoineverin merged 3 commits intomainfrom
remove-require

Conversation

@antoineverin
Copy link
Copy Markdown
Contributor

No description provided.

bpaquet
bpaquet previously approved these changes May 16, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the provider schema and the corresponding documentation to change the parameters "url" and "token" from required to optional, while specifying default environment variables.

  • Updated the documentation in website/docs/index.html.markdown to reflect that "url" and "token" are now optional with default values.
  • Modified provider/provider.go to mark "url" and "token" as optional in the provider schema.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
website/docs/index.html.markdown Updated parameter descriptions with default environment variables.
provider/provider.go Changed "url" and "token" from required to optional with defaults.
Comments suppressed due to low confidence (1)

website/docs/index.html.markdown:43

  • There's a spelling mistake: 'ElasticSsearch' should likely be 'Elasticsearch'.
* `token` - (Option) Authentication token to the ElasticSsearch API. Default is `ELASTICSEARCH_API_KEY` environment variable.

Comment thread website/docs/index.html.markdown Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@antoineverin antoineverin merged commit 7522ff3 into main May 16, 2025
3 checks passed
@antoineverin antoineverin deleted the remove-require branch May 16, 2025 09:23
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.

3 participants