Skip to content

Commit

Permalink
refactor: added schema comments to yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Feb 5, 2024
1 parent df714f2 commit 42b10a3
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ When you execute a template file, GTTP will interactively ask you to fill out th
The template is then parsed with the Go [text/template](https://pkg.go.dev/text/template) syntax.

```yaml
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Name
type: text
Expand Down
2 changes: 1 addition & 1 deletion _examples/array/base/array.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: TextArray
type: text[]
Expand Down
2 changes: 1 addition & 1 deletion _examples/boolean/base/boolean.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Consent
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion _examples/condition/base/condition.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: AddUser
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion _examples/multiselect/base/multiselect.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Order
type: multiselect
Expand Down
2 changes: 1 addition & 1 deletion _examples/number/base/number.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Number
type: number
Expand Down
2 changes: 1 addition & 1 deletion _examples/number/min-max/min-max.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Num1
type: number
Expand Down
2 changes: 1 addition & 1 deletion _examples/section/base/section.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: This is a section
type: section
Expand Down
2 changes: 1 addition & 1 deletion _examples/select/base/select.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Animal
type: select
Expand Down
2 changes: 1 addition & 1 deletion _examples/structures/base/structures.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
structures:
person:
- name: Name
Expand Down
2 changes: 1 addition & 1 deletion _examples/text/base/text.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Name
type: text
Expand Down
2 changes: 1 addition & 1 deletion _examples/text/regex/regex.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Text
type: text
Expand Down
2 changes: 1 addition & 1 deletion testdata/must-fail/number/min-over-max.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Number
type: number
Expand Down
2 changes: 1 addition & 1 deletion testdata/must-fail/text/value-does-not-match-regex.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Text
type: text
Expand Down
2 changes: 1 addition & 1 deletion testdata/must-fail/validation/no-template.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Test
type: text
2 changes: 1 addition & 1 deletion testdata/must-parse/text/base.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Name
type: text
Expand Down
2 changes: 1 addition & 1 deletion testdata/must-parse/text/value-matches-regex.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://gttp.dev/schema
# yaml-language-server: $schema=https://gttp.dev/schema
variables:
- name: Text
type: text
Expand Down

0 comments on commit 42b10a3

Please sign in to comment.