Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: added json schema for configuration file #2068

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

Merged
Bikappa merged 28 commits into master from chore/json-schema
Feb 22, 2023
Merged

Conversation

Copy link
Contributor

@Bikappa Bikappa commented Feb 9, 2023
edited
Loading

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)

What kind of change does this PR introduce?

Provides a json schema for the cli configuration file, for now the schema is not used by the runtime itself and it's only meant for users initiatives.

A possible followup of this pr is the autogeneration of the list of options in configuration.md

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change, and is titled accordingly?

Other information

Fixes #587

@Bikappa Bikappa self-assigned this Feb 9, 2023
@Bikappa Bikappa added the topic: documentation Related to documentation for the project label Feb 9, 2023
Copy link

codecov bot commented Feb 9, 2023
edited
Loading

Codecov Report

Base: 36.62% // Head: 36.56% // Decreases project coverage by -0.07% ⚠️

Coverage data is based on head (46fadf1) compared to base (940c945).
Patch has no changes to coverable lines.

Additional details and impacted files
@@ Coverage Diff @@
## master #2068 +/- ##
==========================================
- Coverage 36.62% 36.56% -0.07% 
==========================================
 Files 229 229 
 Lines 19539 19539 
==========================================
- Hits 7156 7144 -12 
- Misses 11547 11556 +9 
- Partials 836 839 +3 
Flag Coverage Δ
unit 36.56% <ø> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
arduino/monitor/monitor.go 41.05% <0.00%> (-6.32%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Bikappa Bikappa marked this pull request as draft February 9, 2023 08:59
@Bikappa Bikappa force-pushed the chore/json-schema branch 9 times, most recently from 724b3e3 to d012145 Compare February 9, 2023 10:16
@Bikappa Bikappa marked this pull request as ready for review February 9, 2023 11:11
@per1234 per1234 added the type: enhancement Proposed improvement label Feb 11, 2023
Copy link
Contributor

@per1234 per1234 left a comment
edited
Loading

Choose a reason for hiding this comment

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

UPDATE: Resolved by 8ad388e

(削除) Please add a mention of and link to the schema in the documentation of the configuration file: (削除ここまで)

(削除) https://github.com/arduino/arduino-cli/blob/chore/json-schema/docs/configuration.md#configuration-file
(削除ここまで)

Copy link
Contributor

@per1234 per1234 left a comment
edited
Loading

Choose a reason for hiding this comment

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

UPDATE: superseded by 99eb639

(削除) Since it was not feasible to do via the PR review system, I also submitted a PR against this PR's branch for an additional suggestion: https://github.com//pull/2073 (削除ここまで)

@Bikappa Bikappa force-pushed the chore/json-schema branch 3 times, most recently from 7134c2a to 34c68ce Compare February 16, 2023 13:01
Co-authored-by: per1234 <accounts@perglass.com>
Copy link
Contributor Author

Bikappa commented Feb 16, 2023

Since it was not feasible to do via the PR review system, I also submitted a PR against this PR's branch for an additional suggestion: #2073

As discussed with @per1234 a unit test was introduced instead

umbynos reacted with heart emoji

Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

Thanks Luca!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@per1234 per1234 per1234 approved these changes

+1 more reviewer

@umbynos umbynos umbynos approved these changes

Reviewers whose approvals may not affect merge requirements
Labels
topic: documentation Related to documentation for the project type: enhancement Proposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[proposal] Please provide us a JSON schema for the new arduino-cli.yaml config file

AltStyle によって変換されたページ (->オリジナル) /