Skip to content

Conversation

cbos
Copy link
Contributor

@cbos cbos commented Feb 28, 2025

Description

Editor support auto complete for yaml files if there is a schema.
I created the schema and updated the tips and tricks page to others can use it as well.

NOTE: the described url does not work until it is merged, but you can use https://raw.githubusercontent.com/cbos/homer/config_schema/.schema/config-schema.json in the meantime to test auto complete

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I've read & comply with the contributing guidelines
  • I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.
  • I have made corresponding changes to the documentation (README.md).
  • I've checked my modifications for any breaking changes, especially in the config.yml file

Copy link
Owner

@bastienwirtz bastienwirtz left a comment

Choose a reason for hiding this comment

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

I love this! Thanks @cbos 🙏
I'll will take some time to look at it in details soon.

@cbos
Copy link
Contributor Author

cbos commented Mar 3, 2025

As soon as the PR is merged, it can be registered at https://www.schemastore.org/json/
Once that is done, it will be available to all editors supporting schemas for YAML
I can create a PR for that.
https://github.com/SchemaStore/schemastore/blob/master/CONTRIBUTING.md#how-to-add-a-json-schema-thats-self-hostedremoteexternal

It will be just a reference to the schema hosted in this repo, so as soon as that is updated, it will be available.

Copy link
Owner

@bastienwirtz bastienwirtz left a comment

Choose a reason for hiding this comment

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

Awesome work @cbos, thanks a lot!
A few details but it looks good

@cbos
Copy link
Contributor Author

cbos commented Mar 7, 2025

@bastienwirtz
I have reworked the file based on your comments.
Footer can be a boolean or a String now.

@bastienwirtz bastienwirtz merged commit 1b607b6 into bastienwirtz:main Mar 8, 2025
5 checks passed
@cbos
Copy link
Contributor Author

cbos commented Mar 18, 2025

@bastienwirtz
Thanks for merging the PR.
I have created a PR for the schemastore as well: SchemaStore/schemastore#4579
Once that is merged, the support in the editors will be even more available.

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