Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Add schema for ansible-navigator #119

Merged
merged 6 commits into from
Jan 6, 2022

Conversation

ziegenberg
Copy link
Collaborator

@ziegenberg ziegenberg commented Dec 21, 2021

This is work-in-progress, but if there's something completely wrong I welcome comments.

Closes: ansible/ansible-navigator#188
Related: ansible/vscode-ansible#328

@ziegenberg
Copy link
Collaborator Author

Why do they use dashes instead of underscores for the ansible-navigator configuration file? :(

@ziegenberg ziegenberg force-pushed the add-ansible-navigator-model branch 3 times, most recently from 4dfeae2 to 740bb20 Compare December 21, 2021 22:31
@webknjaz webknjaz requested review from a team, relrod, cidrblock and priyamsahoo and removed request for a team December 22, 2021 10:48
@ziegenberg ziegenberg force-pushed the add-ansible-navigator-model branch from 740bb20 to e31d5fe Compare December 22, 2021 10:54
@ziegenberg ziegenberg marked this pull request as ready for review December 22, 2021 11:15
@ziegenberg ziegenberg requested a review from webknjaz as a code owner December 22, 2021 11:15
@ziegenberg
Copy link
Collaborator Author

Ok, I think I got a first version that's ready to be discussed. Tests are green and use the example settings file from https://ansible-navigator.readthedocs.io/en/latest/settings/#the-ansible-navigator-settings-file

@ssbarnea ssbarnea added the enhancement New feature or request label Dec 24, 2021
@ssbarnea
Copy link
Member

That is awesome and we will discuss it for sure, it was already on my todo list so that cames as a really nice xmas present.

@@ -0,0 +1,280 @@
# Used to generate JSON Validations chema for ansible-navigator config files
# https://github.com/ansible-community/ansible-lint/blob/master/.ansible-lint
Copy link
Member

Choose a reason for hiding this comment

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

Navigator?

Copy link
Collaborator Author

@ziegenberg ziegenberg Dec 24, 2021

Choose a reason for hiding this comment

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

That's a copy&paste error. I'll fix it

Copy link
Member

Choose a reason for hiding this comment

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

Lets wait for @cidrblock on this one, he knows navigator better than anyone else and may be able to spot some schema mistakes.

Copy link
Collaborator Author

@ziegenberg ziegenberg Jan 4, 2022

Choose a reason for hiding this comment

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

Fixed it with 34818cc.

@webknjaz
Copy link
Member

Why do they use dashes instead of underscores for the ansible-navigator configuration file? :(

It's quite common and kebab-case is nicer in places where snake_case is not required for things to be compatible with Python identifiers.

@ziegenberg ziegenberg force-pushed the add-ansible-navigator-model branch from b547e35 to 550100a Compare January 4, 2022 18:17
@ziegenberg ziegenberg force-pushed the add-ansible-navigator-model branch from 550100a to 34818cc Compare January 4, 2022 18:19
@ziegenberg
Copy link
Collaborator Author

Rebased onto current main.

@ssbarnea ssbarnea requested a review from ganeshrn January 5, 2022 10:25
Copy link
Member

@ganeshrn ganeshrn left a comment

Choose a reason for hiding this comment

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

Thank you!

@ssbarnea ssbarnea changed the title add schema for ansible-navigator Add schema for ansible-navigator Jan 6, 2022
@ssbarnea ssbarnea merged commit dbd23b9 into ansible:main Jan 6, 2022
ssbarnea added a commit to ssbarnea/vscode-ansible that referenced this pull request Jan 6, 2022
ssbarnea added a commit to ssbarnea/vscode-ansible that referenced this pull request Jan 6, 2022
ssbarnea added a commit to ssbarnea/schemastore that referenced this pull request Jan 6, 2022
madskristensen pushed a commit to SchemaStore/schemastore that referenced this pull request Jan 6, 2022
@cidrblock
Copy link
Contributor

@ziegenberg TY for this btw..... It made my day :)

@ziegenberg
Copy link
Collaborator Author

@cidrblock You are welcome :)

@ziegenberg ziegenberg deleted the add-ansible-navigator-model branch January 18, 2022 13:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Author a json schema file for the ansible-navigator settings file to detect extras
6 participants